How to extend a curve until x-axis and y-axis
Mostrar comentarios más antiguos
Hi guys! I've plotted the red curve through a set of data (.txt file of points):

How can I extend the red curve untile axes of cartesian plane ?
4 comentarios
Meg Noah
el 11 de En. de 2020
Please post the .txt file. The easy answer is change the limits of the axes using xlim and ylim. But I'm guessing that's not what you want. There are several ways to extrapolate data. Generally, extrapolation is frowned on in physical sciences, but it's a very small extrapolation that you're looking for.
Giuseppe
el 11 de En. de 2020
Subhadeep Koley
el 14 de En. de 2020
Are you expecting something like below?

Giuseppe
el 15 de En. de 2020
Respuesta aceptada
Más respuestas (1)
Navya Seelam
el 15 de En. de 2020
0 votos
Hi,
You can use interp1 function to interpolate your plot till x=0. There are different methods the function adopts for interpolation. You can choose from these methods to achieve appropriate interpolation. For more details on interp1 go through the link below.
Categorías
Más información sobre Spectral Estimation en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

