how can the graph between x and y be extrapolated?

5 visualizaciones (últimos 30 días)
Parul Pandey
Parul Pandey el 17 de Mzo. de 2016
Editada: John BG el 18 de Mzo. de 2016
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 comentarios
Star Strider
Star Strider el 17 de Mzo. de 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 el 17 de Mzo. de 2016
I'd be very surprised if this is not homework, lol. Possible though.

Iniciar sesión para comentar.

Respuestas (1)

John BG
John BG el 18 de Mzo. de 2016
Editada: John BG el 18 de Mzo. de 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?

Categorías

Más información sobre Matrix Indexing en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by