MATLAB Answers

can anyone tell whre is the error ?

6 views (last 30 days)
diadalina
diadalina on 19 Jan 2020
Answered: Stephan on 19 Jan 2020
x=-2*pi:0.01:2*pi
%x2=-pi/2:3*pi/25:pi
y=exp(x)
z=sqrt(exp(-x))
figure(3)
plot(x,y,'b','LineWidth',2,x,z,'r','LineWidth',1)*this code doesn't work can anyone tell me why

  0 Comments

Sign in to comment.

Answers (1)

Stephan
Stephan on 19 Jan 2020
x=-2*pi:0.01:2*pi;
y=exp(x);
z=sqrt(exp(-x));
figure(3)
p=plot(x,y,'r',x,z,'b');
p(1).LineWidth = 2;
p(2).LineWidth = 1;

  0 Comments

Sign in to comment.

Sign in to answer this question.

Tags