# help to make a curve onli with to vectorts Classic List Threaded 8 messages Open this post in threaded view
|

## help to make a curve onli with to vectorts

 i have x= [01 2 3 4] and y= [0 10 15 20] y want a graph like a curve but i can not -- Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html
Open this post in threaded view
|

## Re: help to make a curve onli with to vectorts

 On Sat, Dec 15, 2018 at 10:40 AM linuxnero <[hidden email]> wrote:i have x= [01 2 3 4] and y= [0 10 15 20] y want a graph like a curve but i can not -- Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html tryx= [01 2 3 4]y= [0 10 15 20]plot(x,y)-- DAS Open this post in threaded view
|

## Re: help to make a curve onli with to vectorts

 of course but that graph a straight lines but i want a curve -- Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html
Open this post in threaded view
|

## Re: help to make a curve onli with to vectorts

 On Sat, Dec 15, 2018 at 10:58 AM linuxnero <[hidden email]> wrote:of course but that graph a straight lines but i want a curve Try thisx= [01 2 3 4]y= [0 10 15 20]plot(x,y)hold on p=polyfit(x,y,3)x2=0:.1:5;y1=polyval(p,x2)plot(x2,y1)-- DAS Open this post in threaded view
|

## Re: help to make a curve onli with to vectorts

 On Sat, Dec 15, 2018 at 11:05 AM Doug Stewart <[hidden email]> wrote:On Sat, Dec 15, 2018 at 10:58 AM linuxnero <[hidden email]> wrote:of course but that graph a straight lines but i want a curve Try thisx= [01 2 3 4]y= [0 10 15 20]plot(x,y)hold on p=polyfit(x,y,3)x2=0:.1:5;y1=polyval(p,x2)plot(x2,y1)I assumed you wanted a polynomial fit, but is you wantsome other curve then there are lots of ways to get them.Doug
Open this post in threaded view
|

## Re: help to make a curve onli with to vectorts

 In reply to this post by Doug Stewart-4 Did you mean x2 = 1:.1:4 ? From: Help-octave on behalf of Doug Stewart <[hidden email]> Sent: Saturday, December 15, 2018 10:05:48 AM To: linuxnero Cc: Help GNU Octave Subject: Re: help to make a curve onli with to vectorts   On Sat, Dec 15, 2018 at 10:58 AM linuxnero <[hidden email]> wrote: of course but that graph a straight lines but i want a curve Try this x= [01 2 3 4] y= [0 10 15 20] plot(x,y) hold on  p=polyfit(x,y,3) x2=0:.1:5; y1=polyval(p,x2) plot(x2,y1) -- DAS 