there is error in x1(t)
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
mael
el 14 de En. de 2021
Respondida: Walter Roberson
el 14 de En. de 2021
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');
0 comentarios
Respuesta aceptada
Walter Roberson
el 14 de En. de 2021
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 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Conversion Between Symbolic and Numeric en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!