Skip to main content
1-Visitor
May 4, 2011
Question

Re: Help with Linterp plotting please

  • May 4, 2011
  • 1 reply
  • 5969 views

Hi

Attached are two plots, A. which uses points that allow me to plot a triangular shaped curve using the linterp function and B. which uses points that won't let me plot as the error states vectors must be in assending order.

For B. how can I plot this rectangular shaped curve using Linterp function? Ultimately I wish to obtain a plot and a function (with respect to t as in plot A.) for the curve

Thanks

Omar

1 reply

1-Visitor
May 4, 2011

Firstly have a look at the attached sheet. A much cleaner way of setting up your worksheet, well in my opinion anyway.

In your evaluation of Pt2 you have tbd in there twice, Linterp calculates the slope and intercept of the line that passes through each pair of points. If the x-values of two points are the same then the slope is infinite.

Mike

1-Visitor
May 4, 2011

If you slightly increase the second value of t.bd you get the following result.

Mike

uclphd1-VisitorAuthor
1-Visitor
May 4, 2011

Thanks for that.

Is there another function other than linterp that i can use to plot the same thing?

Omar