How to extend a curve until x-axis and y-axis
Ältere Kommentare anzeigen
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 Kommentare
Meg Noah
am 11 Jan. 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
am 11 Jan. 2020
Subhadeep Koley
am 14 Jan. 2020
Are you expecting something like below?

Giuseppe
am 15 Jan. 2020
Akzeptierte Antwort
Weitere Antworten (1)
Navya Seelam
am 15 Jan. 2020
0 Stimmen
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.
Kategorien
Mehr zu Spectral Estimation finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

