y=cos(\theta);
plot(y);
axis([-pi pi -1 1]);
I'm new to Matlab and am trying to display theta, this way doesn't work. How would I display theta in a trig function? I just created a simple version but I will need to apply it to a more complicated version once I understand how to apply it.