MATLAB Plotting Trigonometric Functions
Type at the Matlab prompt:
x=[0:0.1: 2*pi];
y=sin(x);
plot(x,y);
xlabel(`angle (rad)`)
ylabel(`sine`)
title(`y = sin(x)`)
You will see a sinusoid on the graphics window. The sinusoid is plotted for values of x between 0 and 2 p; the step between consecutive values of x is 0.1.
Experiment with commands "cos", "tan", "cot".