How to extend a curve until x-axis and y-axis
Mostra commenti meno recenti
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 Commenti
Meg Noah
il 11 Gen 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
il 11 Gen 2020
Subhadeep Koley
il 14 Gen 2020
Are you expecting something like below?

Giuseppe
il 15 Gen 2020
Risposta accettata
Più risposte (1)
Navya Seelam
il 15 Gen 2020
0 voti
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.
Categorie
Scopri di più su Spectral Estimation in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

