how can the graph between x and y be extrapolated?

6 views (last 30 days)
How can the graph between x and y be extrapolated?
x=linspace(140 230 10);
y=[54 60 70 76 86 100 112 130 152 180];
Find the value of y at x=0 and also extrapolate the graph until x=0.
  3 Comments
Star Strider
Star Strider on 17 Mar 2016
If this is not homework, is there any reason for you to assume that the data exist at x=0?
What are your data? (What are the actual units of ‘x’ and ‘y’?)
What process produced them?
Do you have a mathematical model of the process that produced them?
John D'Errico
John D'Errico on 17 Mar 2016
I'd be very surprised if this is not homework, lol. Possible though.

Sign in to comment.

Answers (1)

John BG
John BG on 18 Mar 2016
Edited: John BG on 18 Mar 2016
Parul
try
p=polyfit(x,y,3)
define the extended range x2, for instance
x2=linspace(100,600,10)
approximate vales of y along extended rage x2 with
y2=polyval(p,x2)
If you find this answer of any help solving your question, please click on the thumbs-up vote link,
thanks in advance
John
note: since i don't know whether it's homework or not i assume it isn't
it's not that don't care, just don't consider asking appropriate.
if you consider it may be an attempt of homework piggy-backing, just say nothing and hop to next question.
It could be genuinely an attempt to unblock a problem, regardless homework or not.
It could be a student with poor command of English taking courage and asking to keep pace.
it's up to you to decide whether to help or not, if you try to gather 'intel'
they may stop asking, and you don't want that, do you?
does it make sense?

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!