Trigonometric Graph MATLAB Program Code


Here is the trigonometric Graph MATLAB Program code.

%Trigonometric graphs%

x=-4*pi:.02:4*pi;
y=sin(x);
plot(x,y);grid on

x=-4*pi:.02:4*pi;
y=cos(x);
plot(x,y);grid on

 x=-(pi/2)+0.01:0.02:(pi/2)+0.01;
y=tan(x);
plot(x,y);grid on


Let me know if there is any correction.

Add Comment