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

조회 수: 25 (최근 30일)
Giuseppe
Giuseppe 2020년 1월 11일
댓글: Giuseppe 2020년 1월 15일
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
Subhadeep Koley
Subhadeep Koley 2020년 1월 14일
Are you expecting something like below?
AVL.png
Giuseppe
Giuseppe 2020년 1월 15일
No, I want to obtain this following one (i.e., I want to plot the green parts):
InkedAVL_fitting_LI_Moment.jpg

댓글을 달려면 로그인하십시오.

채택된 답변

WalterWhite
WalterWhite 2020년 1월 15일
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
WalterWhite
WalterWhite 2020년 1월 15일
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 2020년 1월 15일
Ok, thanks!

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Navya Seelam
Navya Seelam 2020년 1월 15일
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.

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by