欢迎来到天天文库
浏览记录
ID:61488439
大小:64.00 KB
页数:6页
时间:2021-02-05
《实验一 MATLAB运算基础.doc》由会员上传分享,免费在线阅读,更多相关内容在应用文档-天天文库。
1、班级信计102姓名江海峰学号3实验一MATLAB运算基础一、实验目的1.熟悉启动和退出MATLAB的方法;2.熟悉MATLAB命令窗口的组成;3.掌握建立矩阵的方法;4.掌握MATLAB各种表达式的书写规则以及常用函数的使用。二、实验内容1.先求下列表达式的值,然后显示MATLAB工作空间的使用情况并保存全部变量。⑴;⑵,其中;⑶⑷,其中>>z1=2*sin(85*(pi/180))/(1+exp(2))>>z1=0.2375>>x=[21+2i;-0.455];>>z2=(1.0/2)*log(x+(sqrt(1+x^2)))z2=0.7114-0.0253i0.8968+0
2、.3658i0.2139+0.9343i1.1541-0.0044i>>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)z3=Columns1through40.7388+3.1416i0.7696+3.1416i0.7871+3.1416i0.7913+3.1416iColumns5through80.7822+3.1416i0.7602+3.1416i0.7254+3.1416i0.6784+3.1416iColumns9through120.6196+3.1416i0.5
3、496+3.1416i0.4688+3.1416i0.3780+3.1416iColumns13through160.2775+3.1416i0.1680+3.1416i0.0497+3.1416i-0.0771+3.1416iColumns17through20-0.2124+3.1416i-0.3566+3.1416i-0.5104+3.1416i-0.6752+3.1416iColumns21through24-0.8536+3.1416i-1.0497+3.1416i-1.2701+3.1416i-1.5271+3.1416iColumns25through28-1.8
4、436+3.1416i-2.2727+3.1416i-2.9837+3.1416i-37.0245Columns29through32-3.0017-2.3085-1.8971-1.5978Columns33through36-1.3575-1.1531-0.9723-0.8083Columns37through40-0.6567-0.5151-0.3819-0.2561Columns41through44-0.1374-0.02550.07920.1766Columns45through480.26630.34780.42060.4841Columns49through520
5、.53790.58150.61450.6366Columns53through560.64740.64700.63510.6119Columns57through600.57770.53270.47740.4126Column610.3388t=0:0.5:2.5t=00.50001.00001.50002.00002.5000m=reshape(t,2,3)m=01.00002.00000.50001.50002.50002.已知:,求下列表达式的值:⑴(其中I为单位矩阵);⑵;⑶;⑷;⑸.(1)A=[1234-4;34787;3657]A=1234-4347873657>>
6、B=[13-1;203;3-27]B=13-12033-27>>I=[100;010;001]I=100010001>>A+6*Bans=1852-10467105215349>>A-B+Ians=1231-3328840671(2)A*Bans=684462309-72596154-5241>>A.*Bans=1210246802619-13049(3)A^3ans=372264860478688>>A.^3ans=172839304-643930434327343(4)A/Bans=16.4000-13.60007.600035.8000-76.200050.200067.
7、0000-134.000068.0000>>BAans=109.4000-131.2000322.8000-53.000085.0000-171.0000-61.600089.8000-186.2000(5)[A,B]ans=1234-413-13478720336573-27[A([1,3],:);B^2]ans=1234-436574511101920-5403.设有矩阵A和B:⑴求它们的乘积C;⑵将矩阵C的右下角子矩阵赋给D;⑶查看MATLAB工作空间的使用情况。(1)A=[1234
此文档下载收益归作者所有