




版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、matlabn MATLAB n matlabn MATLAB n MATLAB n§1.1 MATLABn Matrix Laboratoryn20 70 Clever Molor Linpack Eispack n 1984 MathWorksn 1992 Windows 4.0 n2000 6.0n 2004 7.0 nMatlab R2009bmatlab Maple Lindo Mathematica MathCAD MATLAB SAS§1.2 MATLABn n nnn n Notebook word matlab n nn>> A=1,2,3;4
2、,5,6;7,8,9A =1 2 34 5 67 8 9>> B=rand(3,3B =0.9501 0.4860 0.45650.2311 0.8913 0.01850.6068 0.7621 0.8214>> C1=A*B C1 =3.2329 4.5549 2.95778.5973 10.9730 6.846813.9616 17.3911 10.7360>> D1=A/BD1 =-1.7100 -0.7740 4.6200-0.4883 -0.6135 7.58970.7333 -0.4530 10.5595li k u ww .d o c u -t
3、r a c k .c mC c t ob w w .d oc u -t r a c k .c om,l=size(A;l,n=size(B;c=zeros(m,n;for i=1:m for j=1:n for k=1:lc(i,j=c(i,j+A(i,k*B(k,j;end end end=×××=lk kj ik ij n l l m n m b a c B A C 1( C >>x=0:0.1:2*pi;>>plot(x,sin(x,r, x,cos(x,b§1.3 MATLABnn n nn n nn Matlabntoo
4、lbox matlab§1.4 MATLABn setup.exe, n nn typical custom n n nli k u ww .d o c u -tr a c k .c mC c t ob w w .d oc u -t r a c k .c otypical customn“Typical” MATLAB n “Custom”“Select products to install”n Windows“ ”n MATLAB matlab.exe nnFile Exit Matlab n Exit Quit n MATLAB “ ”§1.5matlabMATLAB
5、n : n Command Window n Workspacen Command History n Current Directory n StartFile Edit Debug Desktop Window Help 6nFilenSet Path n Import Datan Save Workspace As n Preferenceli k u ww .d o c u -tr a c k .c mC c t ob w w .d oc u -t r a c k .c onEdit Cut Copy Delete Find Clear Command Window Clear Com
6、mand History Clear WorkspacenDesktop(Desktop Layout | DefaultnHelpnDebug nWindowClose all documents M-file Figure Model GUIn Run(F5n step(F10n Clear breakpointsMATLABn>> MATLAB Enter MATLAB n ;n n ans answern workspace;lif end for MATLAB l l l lformat(format short g MATLAB “ 64 16 ”li k u ww .
7、d o c u -tr a c k .c mC c t ob w w .d oc u -t r a c k .c oformat(short 1000format long 15 format long e 15 format short eformat short g format short format short eformat rat format hex format compact format loosenFile|PreferenceMATLABn format MATLABMATLABarray editorworkspace MATLABwho whos>>w
8、hos Name Size Bytes Class ans 1×1 8 double array t 1×201 1608 double array >>who Your variables are:ans tWho whosCurrent Directory MATLABli k u ww .d o c u -tr a c k .c mC c t ob w w .d oc u -t r a c k .c oPD H F-XC A N GE PD H F-XC A N GE O W ! N y bu to k lic C m C lic k to bu y N
9、.c O W ! w .d o w o .d o c u-tr a c k c u-tr a c k .c MATLAB n n n n " M M MATLAB " cd f:mydir f:dir MATLAB MATLAB n p p pathtool File: Set Path editpath n path path(path,' f:my_dir' M Command History workspace , M n / Editor .m Open File|New M-File edit Edit Clear Command History
10、n n o m w w w w PD H F-XC A N GE PD H F-XC A N GE O W ! N y bu to k lic C m C lic k to bu y N .c O W ! w .d o w o .d o c u-tr a c k c u-tr a c k .c n n File|New Figure figure Open file plot F5 Debug|Run .m n M §1.6 MATLAB MATLAB n n n n n Mathworks n HTML helpdoclookfor demo PDF n n n helpbowse
11、r helpdesk Window | Help Help | MATLAB Help ? o m w w w w PD H F-XC A N GE PD H F-XC A N GE O W ! N y bu to k lic C m C lic k to bu y N .c O W ! w .d o w o .d o c u-tr a c k c u-tr a c k .c n n Content Index Search: n n Demos demos matlab demos help/doc/lookfor n n help n doc help help help n doc HTML " " n n help doc lookfor help doc lookfor n n DEMO HTML M GUI lookfor docsearch M n n >>demos demos Help Demos " search " n o m w w w w PD H F-XC A N GE PD H F-XC A N GE O W ! N y bu to k lic C m C
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025年工厂车间安全培训考试试题带答案(基础题)
- 2025管理人员安全培训考试试题含答案(研优卷)
- 25年公司管理人员安全培训考试试题能力提升
- 2025年个体土地承包经营合同范本
- 2025办公设备租赁合同范本 办公设备租赁合同模板
- 2025试论《中华人民共和国国际货物销售合同公约》中的价格条款
- 2025建筑改建合同样本
- 2025无需抵押个人借款合同范本【标准】
- 2025年度物料供应合同
- 2025林地树木栽培与销售承包合同
- (2024年)面神经炎课件完整版
- 减盐减油健康教育教案反思
- 特斯拉国产供应链研究报告
- 如何进行医疗垃圾的安全运输
- 公共停车场建设项目可行性研究报告
- 保安服务标准及工作流程
- 2024年中考数学几何模型归纳(全国通用):18 全等与相似模型之十字模型(学生版)
- 外科疾病分级目录
- 国家级教学成果的培育提炼与申报
- 海南师范大学《高等数学》2020-2021期末试卷B
- 2023年09月黑龙江省大兴安岭地区“黑龙江人才周”校园引才活动引进90名人员笔试历年难易错点考题荟萃附带答案详解
评论
0/150
提交评论