Plot y sinx 0720 deg whee only positive values of y are show
Plot y= sin(x) =0....720 deg whee only positive values of y are shown on the plot use loops ( For ,while ) to generate the x and y data using 1 degree increments of x .
Solution
[1] Plot a sinx with increment value 1
For x=0:1:72
y=sin(x);
if(y>=0)
plot(x,y,\'r-+\');
hold on;
end
end
