How to extend a curve until x-axis and y-axis

8 vues (au cours des 30 derniers jours)
Giuseppe
Giuseppe le 11 Jan 2020
Commenté : Giuseppe le 15 Jan 2020
Hi guys! I've plotted the red curve through a set of data (.txt file of points):
AVL_fitting.png
How can I extend the red curve untile axes of cartesian plane ?
  4 commentaires
Subhadeep Koley
Subhadeep Koley le 14 Jan 2020
Are you expecting something like below?
AVL.png
Giuseppe
Giuseppe le 15 Jan 2020
No, I want to obtain this following one (i.e., I want to plot the green parts):
InkedAVL_fitting_LI_Moment.jpg

Connectez-vous pour commenter.

Réponse acceptée

WalterWhite
WalterWhite le 15 Jan 2020
It doesnt seem to happen with interpolation(interp1)...atleast for me. But i've come up with an alternative based on the geometry and i've explained the reason along the code. Hope this helpsuntitled.jpg
  3 commentaires
WalterWhite
WalterWhite le 15 Jan 2020
It's basically the same concept for the other end. You just have to copy paste and change the values. But this is not an accurate result, mind you
Giuseppe
Giuseppe le 15 Jan 2020
Ok, thanks!

Connectez-vous pour commenter.

Plus de réponses (1)

Navya Seelam
Navya Seelam le 15 Jan 2020
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 Interpolation dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by