内容发布更新时间 : 2025/1/8 4:50:15星期一 下面是文章的全部内容请认真阅读。
Matlab上机实验答案
实验一 MATLAB运算基础
1. 先求下列表达式的值,然后显示MATLAB工作空间的使用情况并保存全部变量。
2sin850(1) z1? 1?e2>> z1=2*sin(85*pi/180)/(1+exp(2)) z1 =
0.2375 (2) z2?1?2i??21 ln(x?1?x2),其中x???5?2??0.45>> x=[2 1+2i;-0.45 5]; >> z2=1/2*log(x+sqrt(1+x^2)) z2 =
0.7114 - 0.0253i 0.8968 + 0.3658i 0.2139 + 0.9343i 1.1541 - 0.0044i
e0.3a?e?0.3a0.3?az?sin(a?0.3)?ln,a??3.0,?2.9,L,2.9,3.0 (3) 322精选
>> a=-3.0:0.1:3.0;
>> z3=(exp(0.3.*a)-exp(-0.3.*a))./2.*sin(a+0.3)+log((0.3+a)./2) (>> z33=(exp(0.3*a)-exp(-0.3*a))/2.*sin(a+0.3)+log((0.3+a)/2) 可以验证z3==z33,是否都为1) z3 =
Columns 1 through 5
0.7388 + 3.1416i 0.7696 + 3.1416i 0.7913 + 3.1416i 0.7822 + 3.1416i
Columns 6 through 10
0.7602 + 3.1416i 0.7254 + 3.1416i 0.6196 + 3.1416i 0.5496 + 3.1416i
Columns 11 through 15
0.4688 + 3.1416i 0.3780 + 3.1416i 0.1680 + 3.1416i 0.0497 + 3.1416i
精选
0.7871 + 3.1416i 0.6784 + 3.1416i 0.2775 + 3.1416i Columns 16 through 20
-0.0771 + 3.1416i -0.2124 + 3.1416i -0.3566 + 3.1416i -0.5104 + 3.1416i -0.6752 + 3.1416i
Columns 21 through 25
-0.8536 + 3.1416i -1.0497 + 3.1416i -1.2701 + 3.1416i 1.5271 + 3.1416i -1.8436 + 3.1416i
Columns 26 through 30
-2.2727 + 3.1416i -2.9837 + 3.1416i -37.0245 + 0.0000i 3.0017 + 0.0000i -2.3085 + 0.0000i
Columns 31 through 35
-1.8971 + 0.0000i -1.5978 + 0.0000i -1.3575 + 0.0000i 1.1531 + 0.0000i -0.9723 + 0.0000i
Columns 36 through 40
精选
---