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');

 채택된 답변

Walter Roberson
Walter Roberson 2021년 1월 14일

0 개 추천

syms t t0
u(t)=piecewise(t<t0, 0, t>=t0, 1);
x1(t)=2*u(t-1)-2*u(t-3);
T = 0:1/50:10;
X1 = double(subs(x1(T),t0,0));
plot(T, X1,'r')
hold on
r(t) = piecewise(t<t0, 0, t>=t0, t-t0);
x2(t) = r(t-(11/3))-2*r(t-(13/3));
X2 = double(subs(x2(T), t0, 0));
plot(T, X2, 'b');

추가 답변 (0개)

질문:

2021년 1월 14일

답변:

2021년 1월 14일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by