Matlab程序设计与提高.ppt

上传人:cl****1 文档编号:576438577 上传时间:2024-08-19 格式:PPT 页数:27 大小:305.36KB
返回 下载 相关 举报
Matlab程序设计与提高.ppt_第1页
第1页 / 共27页
Matlab程序设计与提高.ppt_第2页
第2页 / 共27页
Matlab程序设计与提高.ppt_第3页
第3页 / 共27页
Matlab程序设计与提高.ppt_第4页
第4页 / 共27页
Matlab程序设计与提高.ppt_第5页
第5页 / 共27页
点击查看更多>>
资源描述

《Matlab程序设计与提高.ppt》由会员分享,可在线阅读,更多相关《Matlab程序设计与提高.ppt(27页珍藏版)》请在金锄头文库上搜索。

1、入门与提高入门与提高MATLABThe Language of Technical Computing一、一、Matlab是什么是什么三、开发环境三、开发环境二、安装二、安装四、演示四、演示五、学习中需注意的问题五、学习中需注意的问题 Matlab是一门高性能的科学计算语言是一门高性能的科学计算语言.她拥有友好的操作界她拥有友好的操作界面,并且采用了人们常用的数学表达方式,集成计算、可视化和面,并且采用了人们常用的数学表达方式,集成计算、可视化和程序设计等功能。程序设计等功能。一、一、Matlab是什么是什么 Math and computation Algorithm development

2、 Data acquisition Modeling, simulation, and prototyping Data analysis, exploration, and visualization Scientific and engineering graphics Application development, including graphical user interface building 具有下面几个方面的应用:具有下面几个方面的应用: Matlab是一个交互式的系统,其基本数据元素是不要求维数的是一个交互式的系统,其基本数据元素是不要求维数的矩阵。她可以用来求解很多的计

3、算问题矩阵。她可以用来求解很多的计算问题,特别是使用向量和矩阵的特别是使用向量和矩阵的大型计算问题大型计算问题,在过去这些都是需要非交互式的标量语言在过去这些都是需要非交互式的标量语言(例例C、FortranFortran) )编写程序的。编写程序的。 MatlabMatlab意指意指matrix laboratorymatrix laboratory。其起源是用来访问矩阵的。其起源是用来访问矩阵的LINPACK LINPACK 和和EISPACKEISPACK子程序库。子程序库。 MATLABMATLAB以一个附加产品的形式为特色具体应用的解决办法叫做以一个附加产品的形式为特色具体应用的解决

4、办法叫做工具箱。工具箱。 对对MATLABMATLAB的大多数用户非常重要,工具箱允许你学习并的大多数用户非常重要,工具箱允许你学习并且使用专业化的技术。且使用专业化的技术。 工具箱综合延长工具箱综合延长MATLABMATLAB环境解决问题的特环境解决问题的特别的班级的别的班级的MATLABMATLAB函数函数( (M M 文件文件) )的收集。的收集。 工具箱可提供的地区包工具箱可提供的地区包括信号处理,控制系统,神经网络,模糊逻辑,子波,模拟和很多括信号处理,控制系统,神经网络,模糊逻辑,子波,模拟和很多其它其它 Matlab系统由五部分构成:系统由五部分构成:Development En

5、vironment.The MATLAB Mathematical Function Library.The MATLAB Language.Graphics.The MATLAB Application Program Interface (API).Matlab系统系统二、安装1、系统要求、系统要求Operating System ProcessorsDisk Space *RAMXPPentium, Pentium Pro, II, III, IV, Xeon PIII, AMD Athlon, Athlon XP90MB (MATLAB ONLY) 215MB (MATLAB and

6、Online Help)*128MB (minimum)256MB (recommended)2000 (Service Pack 1 or 2)NT 4.0 (Service Pack 5, 6, or 6a)ME 98 (Original and Second Edition) Windows For Release 14, the next major release, Windows 98 and ME versions of the Windows operating system will no longer be available. See Planned Release 14

7、 System Requirements for details.2、Standard Installation ChecklistStep 1: Start the InstallerStep 2: Enter Your Personal License Password (PLP)Step 3: Review the Software Licensing AgreementStep 4: Enter Your Name and Company NameStep 5: Select the Products You Want to InstallStep 6: Get Configurati

8、on Information (Optional)Step 7: Complete the Installation3、MATLAB Installation Directory StructureAfter installation, your MATLAB installation directory contains A text file, named license.txt, which contains the MATLAB software license agreement A shortcut to the MATLAB executable The subdirectori

9、es listed below BINWIN32 The MATLAB binary and associated filesDEMOS MATLAB demonstration programsEXTERN Tools for building external interfaces to MATLABFLEXLM The FLEXlm license manager, license management utilitiesHELP Help systemJA MATLAB internationalization filesJAVA MATLAB Java Jar filesNOTEBO

10、OK MATLAB NotebookSYS Tools and operating system libraries that MATLAB depends onTOOLBOX The MATLAB toolboxesUNINSTALL The MATLAB Uninstaller programWORK Default initial current directory三、开发环境三、开发环境1、启动和关闭启动和关闭MATLAB2、使用桌面使用桌面3、运行运行Matlab函数函数4、获取帮助获取帮助使用桌面使用桌面Command window(命令命令)窗口窗口Command History

11、(命令历史命令历史)窗口窗口Launch Pad(发射台发射台)窗口窗口Current Directoy(当前日录当前日录)浏览器浏览器Help(帮助帮助)浏览器浏览器Workspace(工作空间工作空间)浏览器浏览器ArrayEditor(数组编辑器数组编辑器)窗口窗口Editor/Debugger(编辑器编辑器/调试器调试器)运行运行Matlab函数函数 在在Command窗口看到窗口看到Open b、Use open or edit to open a file in the Editor. Use type to display the M-file in the Command Wi

12、ndow.5、错误检验错误检验Preferences for the Command WindowCommand HistorydocDisplay online documentation in MATLAB Help browserhelpDisplay help for MATLAB functions in Command WindowhelpbrowserDisplay Help browser for access to extensive online helphelpwinDisplay M-file help, with access to M-file help for a

13、ll functions4、获取帮助获取帮助infoDisplay information about The MathWorks or productslookforSearch for specified keyword in all help entriessupportOpen MathWorks Technical Support Web pagewebPoint Help browser or Web browser to file or Web sitewhatsnewDisplay information about MATLAB and toolbox releases四、演示四、演示1、例、例11 微积分运算举例。微积分运算举例。求函数求函数f(x)= 的原函数、定积分的精确解与数值的原函数、定积分的精确解与数值解,导数。解,导数。(1)求原函数:求原函数: syms x;sy=int(1/(1-x2)(1/2)(2)定积分的精确解。定积分的精确解。 z=int(1/(1-x2)(1/2),0,0.5)(3)求函数的导数。求函数的导数。syms x; df=diff(1/(1-x.2)(1/2)df1=subs(df,0.5)numeric(df1)

展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 高等教育 > 研究生课件

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号