f(t)=(2-e-2t)u(t)的MATLAB程序怎么写

如题所述

第1个回答  2015-03-22
t=[0:0.01:10];
x=(2-exp(-2*t));
plot(t,x);
xlabel('t');
ylabel('x(t)');
title('x(t)=(2-exp(-2*t)');
grid on本回答被网友采纳
第2个回答  2020-03-22
t=-2:0.02:2;
f1=(2-exp(-2*t)).*heaviside(t);
plot(t,f1);
xlabel('t');ylabel('(2-e^(-2t))u(t)');
title('(2-e^(-2t))u(t)');
第3个回答  2013-09-23
楼上错误,同求答案
第4个回答  2012-05-20
t=0:10;
f=(2-e.*(12*t))*u;