
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);
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

2025-03-06 广告
公司具有国际互认的第三方检验检测资质,为客户提供科学、公正、权威、及时的检验检测报告.一家专注包装科研与检验检测的第三方检测机构,华南包装技术在第三方检测细分领域(包装)的专注与贡献,在业界有口皆碑。...
点击进入详情页
本回答由华南检测机构提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询