>> x = [-pi/2:0.1:pi/2];%the range for x
>> y = sin(2*x);%the range for y
>> plot(x,y);
>> title('y=sin(2x)')
>> xlabel('x')
>> ylabel('y')
>> x = [-pi/2:0.1:pi/2];%the range for x
>> y = sin(2*x);%the range for y
>> plot(x,y);
>> title('y=sin(2x)')
>> xlabel('x')
>> ylabel('y')