On Jun 29, 7:28 pm, Teddy <skim...@ec.auckland.ac.nz> wrote:
> I have this plot with 1x160 row vector for x and 1x160 row vector for y.
>
> My curve starts from x=0 and ends at x=2.5 but I want to add a curve that fits my original curve and want to make it go all the way to x=3.5 but I am not sure how. (I thought about adding more components for x and y but I dont think this will give accurate curve)
>
> Is there any easier way of doing this?

Since you don't have ANY data outside of your 02.5 range (let alone
"accurate" data) you'll need to pick a model, fit it to the data
inside the range that you DO have, and then extrapolate the "missing"
range. One way you can to this is to use polyfit(), passing in 02.5
and then use polyval() passing in the range 03.5. It will give you
fitted values in the range 02.5 and then in the range 2.5  3.5 it
will give you values of that same model but extrapolated out into that
range. Will this work for you?
