How to extend a curve until x-axis and y-axis
Afficher commentaires plus anciens
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 commentaires
Meg Noah
le 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
le 11 Jan 2020
Subhadeep Koley
le 14 Jan 2020
Are you expecting something like below?

Giuseppe
le 15 Jan 2020
Réponse acceptée
Plus de réponses (1)
Navya Seelam
le 15 Jan 2020
0 votes
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.
Catégories
En savoir plus sur Spectral Estimation dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

