




版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 【正版授权】 ISO/IEC 19566-7:2022/AMD1:2025 EN Information technologies - JPEG systems - Part 7: JPEG linked media format (JLINK) - Amendment 1: Revision to the JLINK XMP expressions
- 【正版授权】 ISO/IEC/IEEE 29119-5:2024 EN Software and systems engineering - Software testing - Part 5: Keyword-driven testing
- 杭州全日制劳动合同
- 砖块购销合同砖块购销合同
- 虚拟现实技术内容开发合作协议
- 招投标文件合同协议书
- 购房押金合同书
- 房归女方所有离婚协议书
- 幼儿端午活动方案
- 商场柜台转让协议书
- 绿色建筑设计标准-云南
- 《公路智慧养护信息化建设指南(征求意见稿)》
- 《书籍装帧设计》 课件 项目4 书籍装帧版式设计
- 作物栽培学课件
- 2024年辽宁大连中远海运川崎船舶工程有限公司招聘笔试参考题库含答案解析
- 资产盘点方案策划
- 血浆置换的护理
- 加油站安全生产标准化档案清单
- 《群英会蒋干中计》课件38张 2023-2024学年高教版(2023)中职语文基础模块下册
- 大单元教学和集体备课研究
- 《学术不端行为》课件
评论
0/150
提交评论