How to extend a curve until x-axis and y-axis
이전 댓글 표시
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
Meg Noah
2020년 1월 11일
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
2020년 1월 11일
Subhadeep Koley
2020년 1월 14일
Are you expecting something like below?

Giuseppe
2020년 1월 15일
채택된 답변
추가 답변 (1개)
Navya Seelam
2020년 1월 15일
0 개 추천
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.
카테고리
도움말 센터 및 File Exchange에서 Spectral Estimation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

