Plot

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Plot

Marie
Can anybody help me with this plot?
I am a beginner in octave .
How can I do this?

x = sin(-b)+b, y=2-cos(-b), 5≤ b≤ 6pi

Reply | Threaded
Open this post in threaded view
|

Re: Plot

siko1056
Marie wrote
Can anybody help me with this plot?
I am a beginner in octave .
How can I do this?

x = sin(-b)+b, y=2-cos(-b), 5≤ b≤ 6pi
I hope not to spoil a homework assignment:

b = linspace (5, 6*pi, 1000);
x = sin (-b) + b;
y = 2 - cos (-b);
plot (x, y)

HTH,
Kai
Reply | Threaded
Open this post in threaded view
|

Re: Plot

Juan Pablo Carbajal-2
In reply to this post by Marie
> How can I do this?
>
> x = sin(-b)+b, y=2-cos(-b), 5≤ b≤ 6pi

Have in mind that octave is not the ideal tool for symbolic studies
(you could check if the symbolic package meets your needs)
If you do not care about sampling, you can plot in the following way

nT = 100; # number of points
b   = linspace (5, 6*pi, nT).';
x   = b - sin (b);
y   = 2 - cos (b);
plot(x,y,'o-');
axis image

_______________________________________________
Help-octave mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave