MATLAB: How come the second plot isn’t graphing

hypocycloidnot workingplottwo curves

Here is the code:
N = 10000 ;
t = linspace((-2*pi),(2*pi),N) ;
a = 4;
b = 1;
n = (a/b);
%SET 3 equations
x4 = a*(cos(t)).^3;
y4 = a*(sin(t)).^3;
plot(x4,y4,'m')
hold on
xR = ((cos(t).*(8 + 5*cos(2*t) + 3*cos(6*t)))/(13 + 3*cos(4*t)));
yR = ((4*(sin(t)).^3.*(7 + 6*cos(2*t) + 3*cos(4*t)))/(13 + 3*cos(4*t)));
plot(xR,yR,'g')

Best Answer

You need to use ./ instead of / for your division.