永发信息网

信号实验用matlab画出 f (t) = (2 − e−2t )u(t),求 f (2t)、 f (2 − t)波形,求改错

答案:2  悬赏:30  手机版
解决时间 2021-01-16 02:02
  • 提问者网友:暗中人
  • 2021-01-15 23:01
信号实验用matlab画出 f (t) = (2 − e−2t )u(t),求 f (2t)、 f (2 − t)波形,求改错
最佳答案
  • 五星知识达人网友:蕴藏春秋
  • 2021-01-16 00:31
做了一些改动,试试看
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)');

全部回答
  • 1楼网友:像个废品
  • 2021-01-16 01:52
t=-3:0.01:10;
f0='(2-exp(-2*t))*u(t)';
subplot(311);
ezplot(f0,t);
xlabel('t');
ylabel('f1(t)');
title('f1(t)');
grid on;
f1='(2-exp(-2*2*t))*u(2*t)';
subplot(312);
ezplot(f1,t);
xlabel('t');
ylabel('f1(2t)');
title('f1(2t)');
grid on;
f2='(2-exp(-2*2*(2-t)))*u(2*(2-t))';
subplot(313);
ezplot(f2,t);
xlabel('t');
ylabel('f1(2-t)');
title('f1(2-t)');
grid on;
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯