信号实验用matlab画出 f (t) = (2 − e−2t )u(t),求 f (2t)、 f (2 − t)波形,求改错ft=sym('Heaviside(t)');f1=(2-exp(-2*t)).*ft; subplot(3,1,1); ezplot('f1'); grid on; title ('f(t)'); f2=subs(f1,t,2*t); subplot(3,1,2); ezplot
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/26 05:38:19
信号实验用matlab画出 f (t) = (2 − e−2t )u(t),求 f (2t)、 f (2 − t)波形,求改错ft=sym('Heaviside(t)');f1=(2-exp(-2*t)).*ft; subplot(3,1,1); ezplot('f1'); grid on; title ('f(t)'); f2=subs(f1,t,2*t); subplot(3,1,2); ezplot
信号实验用matlab画出 f (t) = (2 − e−2t )u(t),求 f (2t)、 f (2 − t)波形,求改错
ft=sym('Heaviside(t)');
f1=(2-exp(-2*t)).*ft;
subplot(3,1,1);
ezplot('f1'); grid on;
title ('f(t)');
f2=subs(f1,t,2*t);
subplot(3,1,2);
ezplot('f2'); grid on;
title ('f(2t)');
f3=subs(f1,t,2-t);
subplot(3,1,3);
ezplot('f3'); grid on;
title ('f(2-t)');
信号实验用matlab画出 f (t) = (2 − e−2t )u(t),求 f (2t)、 f (2 − t)波形,求改错ft=sym('Heaviside(t)');f1=(2-exp(-2*t)).*ft; subplot(3,1,1); ezplot('f1'); grid on; title ('f(t)'); f2=subs(f1,t,2*t); subplot(3,1,2); ezplot
做了一些改动,试试看
clc,clear
close all
syms t
ft=heaviside(t);
f1=(2-exp(-2*t))*ft;
subplot(3,1,1);ezplot(f1,[-2*pi,2*pi]);
grid on;
title ('f(t)');
f2=subs(f1,t,2*t);
subplot(3,1,2);ezplot(f2,[-2*pi,2*pi]);
grid on;
title ('f(2t)');
f3=subs(f1,t,2-t);
subplot(3,1,3);ezplot(f3,[-2*pi,2*pi]);
grid on;
title('f(2-t)');