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

17 views (last 30 days)

Show older comments

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 Comments

### Accepted Answer

WalterWhite
on 15 Jan 2020

##### 3 Comments

WalterWhite
on 15 Jan 2020

### More Answers (1)

Navya Seelam
on 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.

##### 0 Comments

### See Also

### Categories

### Community Treasure Hunt

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

Start Hunting!