there is error in x1(t)
Show older comments
clear all
close all
clc
syms u(t) r(t) x(t) t0
u(t)=piecewise(t<t0, 0, t>=t0, 1);
t=0:1/50:10;
x1(t)=2*u(t-1)-2*u(t-3);
x1=subs(x1,{t0,t},{0,t});
plot(t,x1,'r')
hold on
r(t)=piecewise(t<t0, 0, t>=t0, t-t0);
x2=r(t-(11/3))-2*r(t-(13/3));
plot(t,x2,'b');
Accepted Answer
More Answers (0)
Categories
Find more on Code Performance in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!