help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: help to make a curve onli with to vectorts


From: Montgomery-Smith, Stephen
Subject: Re: help to make a curve onli with to vectorts
Date: Sat, 15 Dec 2018 16:29:29 +0000

Did you mean x2 = 1:.1:4 ?
From: Help-octave <help-octave-bounces+address@hidden> on behalf of Doug Stewart <address@hidden>
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 <address@hidden> 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)

--
DASCertificate for 206392


reply via email to

[Prev in Thread] Current Thread [Next in Thread]