- #1
roam
- 1,271
- 12
I want to graph the following parametric curve using matlab:
x = 31cos(t)-7cos(31/7)t
y = 31sin(t)-7sin(31/7)t
0 ≤ t ≤ 14π
This is the code I used:
But the graph which Matlab generated is very different from what it's supposed to look like. Is there a problem with my codes? How do we graph this parametric curve (it's a complex curve)? Thanks.
x = 31cos(t)-7cos(31/7)t
y = 31sin(t)-7sin(31/7)t
0 ≤ t ≤ 14π
This is the code I used:
Code:
syms t
t=[0:1:19*pi]
x=31*cos(t)-7*cos(31/7)*t;
y=31*sin(t)-7*sin(31/7)*t;
plot(t,y,t,x)
But the graph which Matlab generated is very different from what it's supposed to look like. Is there a problem with my codes? How do we graph this parametric curve (it's a complex curve)? Thanks.