Matlab程序设计与提高培训课件

上传人:日度 文档编号:149721619 上传时间:2020-10-29 格式:PPT 页数:27 大小:88KB
返回 下载 相关 举报
Matlab程序设计与提高培训课件_第1页
第1页 / 共27页
Matlab程序设计与提高培训课件_第2页
第2页 / 共27页
Matlab程序设计与提高培训课件_第3页
第3页 / 共27页
Matlab程序设计与提高培训课件_第4页
第4页 / 共27页
Matlab程序设计与提高培训课件_第5页
第5页 / 共27页
点击查看更多>>
资源描述

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

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

2、n, and visualization Scientific and engineering graphics Application development, including graphical user interface building,具有下面几个方面的应用:,5,Matlab是一个交互式的系统,其基本数据元素是不要求维数的矩阵。她可以用来求解很多的计算问题,特别是使用向量和矩阵的大型计算问题,在过去这些都是需要非交互式的标量语言(例C、Fortran)编写程序的。 Matlab意指matrix laboratory。其起源是用来访问矩阵的LINPACK 和EISPACK子程序

3、库。 MATLAB以一个附加产品的形式为特色具体应用的解决办法叫做工具箱。 对MATLAB的大多数用户非常重要,工具箱允许你学习并且使用专业化的技术。 工具箱综合延长MATLAB环境解决问题的特别的班级的MATLAB函数(M 文件)的收集。 工具箱可提供的地区包括信号处理,控制系统,神经网络,模糊逻辑,子波,模拟和很多其它,6,Matlab系统由五部分构成: Development Environment. The MATLAB Mathematical Function Library. The MATLAB Language. Graphics. The MATLAB Applicatio

4、n Program Interface (API).,Matlab系统,7,二、安装,1、系统要求,8,9,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 System Requirements for details.,10,2、Standard Installation Checklist Step 1: Start the

5、 Installer Step 2: Enter Your Personal License Password (PLP) Step 3: Review the Software Licensing Agreement Step 4: Enter Your Name and Company Name Step 5: Select the Products You Want to Install Step 6: Get Configuration Information (Optional) Step 7: Complete the Installation,11,3、MATLAB Instal

6、lation Directory Structure After 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 subdirectories listed below,12,BINWIN32 The MATLAB binary and associated files DEMOS

7、 MATLAB demonstration programs EXTERN Tools for building external interfaces to MATLAB FLEXLM The FLEXlm license manager, license management utilities HELP Help system JA MATLAB internationalization files JAVA MATLAB Java Jar files NOTEBOOK MATLAB Notebook SYS Tools and operating system libraries th

8、at MATLAB depends on TOOLBOX The MATLAB toolboxes UNINSTALL The MATLAB Uninstaller program WORK Default initial current directory,13,三、开发环境,1、启动和关闭MATLAB,2、使用桌面,3、运行Matlab函数,4、获取帮助,14,使用桌面,15,Command window(命令)窗口 Command History(命令历史)窗口 Launch Pad(发射台)窗口 Current Directoy(当前日录)浏览器 Help(帮助)浏览器 Workspa

9、ce(工作空间)浏览器 ArrayEditor(数组编辑器)窗口 Editor/Debugger(编辑器/调试器),16,运行Matlab函数,在Command窗口看到提示符后就可以输入你想运行的任何 函数或变量运算。,书写规范,1、大小写敏感,2、一行书写多条命令用;分开,3、续行通过完成,4、不同的语法关键词显示颜色不同,17,5、Command Line Editing,Cut, Copy, Paste, Undo, and Redo,Recalling Previous Lines,6、清除屏幕可以用 clc ,home,7、如果一次不想显示运行结果可以通过加;来完成,8、format

10、输出数据格式显示控制命令。其中可以选择short、short e、long、long e等类型,18,运行程序(Running Programs),1、运行M文件Running M-Files,2、中止M文件运行,运行包含Matlab语言,M文件和运行函数一样,在命令窗口中输入M文件名。但要求M文件必须在Matlab的搜索路径里面。,You can interrupt a running program by pressing Ctrl+C or Ctrl+Break at any time.,19,3、运行外部程序,可以通过 !命令 或 dos(命令) 来运行操作系统的程序,4、打开M文件,

11、a、可以通过 File-Open,b、Use open or edit to open a file in the Editor. Use type to display the M-file in the Command Window.,5、错误检验,20,Preferences for the Command Window,Command History,21,doc Display online documentation in MATLAB Help browser help Display help for MATLAB functions in Command Window hel

12、pbrowser Display Help browser for access to extensive online help helpwin Display M-file help, with access to M-file help for all functions,4、获取帮助,22,info Display information about The MathWorks or products lookfor Search for specified keyword in all help entries support Open MathWorks Technical Sup

13、port Web page web Point Help browser or Web browser to file or Web site whatsnew Display information about MATLAB and toolbox releases,23,四、演示,1、例11 微积分运算举例。 求函数f(x)= 的原函数、定积分的精确解与数值解,导数。,(1)求原函数: syms x;sy=int(1/(1-x2)(1/2) (2)定积分的精确解。,24, 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),25,26,27,

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

最新文档


当前位置:首页 > 高等教育 > 专业基础教材

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