invalid expression error.
3 views (last 30 days)
Show older comments
B = 0.02;
a = 0.1;
f = 0.53;
phi = 3*pi/4;
t = -5:0.05:10;
x = B^a*exp (-a*t) .*sin(...2*pi*f*t+phi);
xu = x.*(t>O) ;
u = (t>0);
plot(t,x,t,u,t,xu)
ylabel('x (t)')
xlabel('t (s)')
text (O, 1.2, 'Tu(t)')
text (-4,-1.1,'x (t)')
axis ([t( 1)t(end)-1.5 1.5])
0 Comments
Accepted Answer
Torsten
on 10 Mar 2023
B = 0.02;
a = 0.1;
f = 0.53;
phi = 3*pi/4;
t = -5:0.05:10;
x = B^a*exp (-a*t) .*sin(...
2*pi*f*t+phi);
xu = x.*(t>0) ;
u = (t>0);
plot(t,x,t,u,t,xu)
ylabel('x (t)')
xlabel('t (s)')
text (0, 1.2, 'Tu(t)')
text (-4,-1.1,'x (t)')
axis ([t(1) t(end) -1.5 1.5])
More Answers (0)
See Also
Categories
Find more on Matrix Indexing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!