Hello, How I will change the line width for two functions in the same plot command? or I will need to do it in a separate command?
figure(2
x=[0:0.1:1];
y=tan(x);
z=sin(x);
plot(x,y,'g-.',x,z,'r*–')
hleg1 = legend('tan(x)','sin(x)'); grid on;
xlabel('x')
ylabel('y')
Best Answer