build a sin(x)^sgn(sin(100x) graph on the [-10:10] step 0.1
-
I know the task is childish, but I don't know what a mistake is.
x=-10:0.1:10; y=sin(x)^sgn(sin(100*x)) plot(x,y) title('График функции cos(3x)') xlabel('Ось X') ylabel('Ось Y') legend('y=cos(3x)') grid on
-
The second line shall be:
y=sin(x).^sign(sin(100*x))
First of all, not
sgn
♪sign
And second, not^
♪.^
♪ Without a point of view, this is the operation of the matrix to the degree through the matrix. There's got to be a real build.sin(x)
to the extent required by the masssign(sin(100*x))
and therefore the use of a swap operation should be used to a degree.^
♪