Matlab,第二道题目怎么写啊?
1个回答
展开全部
这个答案不知是否符合你题干的要求。矩阵乘法需要注意的一点就是按位乘的方式是 .*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
clear all
close all
t1=0:0.01:4;
t2=linspace(0,4,4/0.01);
t3=(0:4/0.01)*0.01;
f1=0.5*sqrt(3)*exp(-4*t1).*sin(4*sqrt(3)*t1+pi/3);%矩阵乘法按位乘要用 “.*”
f2=0.5*sqrt(3)*exp(-4*t2).*sin(4*sqrt(3)*t2+pi/3);
f3=0.5*sqrt(3)*exp(-4*t3).*sin(4*sqrt(3)*t3+pi/3);
figure;
subplot(131)
plot(t1,f1);
subplot(132)
plot(t2,f2);
subplot(133)
plot(t3,f3);
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
clear all
close all
t1=0:0.01:4;
t2=linspace(0,4,4/0.01);
t3=(0:4/0.01)*0.01;
f1=0.5*sqrt(3)*exp(-4*t1).*sin(4*sqrt(3)*t1+pi/3);%矩阵乘法按位乘要用 “.*”
f2=0.5*sqrt(3)*exp(-4*t2).*sin(4*sqrt(3)*t2+pi/3);
f3=0.5*sqrt(3)*exp(-4*t3).*sin(4*sqrt(3)*t3+pi/3);
figure;
subplot(131)
plot(t1,f1);
subplot(132)
plot(t2,f2);
subplot(133)
plot(t3,f3);
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询