- 1、本文档共12页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 5、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 6、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 7、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 8、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
matlab编程简明教程(matlab编程简明教程)
matlab编程简明教程(matlab编程简明教程)
Mathematics experiment
Mathematical software Matlab
Based on Matlab programming
One
The main content
Matlab programming based on M file?
Arithmetic, relationship operation, logic operation? Control structure: sequence structure, selection of structure, circulation structure
Two
Introduction to Matlab programming
Matlab programming
Matlab is a widely used in scientific computing tools, not only has the computing capability and rich powerful graphics numerical, can also design program like C, FORTRAN and other high-level language programs using Matlab? Control function, related Matlab commands programmed and stored in a file (M file), and then run the file in the command window, Matlab will automatically turn executable commands until all commands executed? In Matlab programming, make full use of the characteristics of Matlab data structure, improve the efficiency of programming
Three
M file
The M file is introduced
Using Matlab language program called M file? M files with.M extension? M file is composed of several Matlab commands combined together, it can complete some operations, can also realize some algorithm
M document classification (according to different ways of calling)
Script: script / command file? Function: function files, M files can be run directly
Four
M file
M file creation and editing
M file is a text file, you can use any text editor to create and edit, usually use Matlab own M file editor
A new M file
The menu (File? New? M-File)? (edit M command file name) command button (shortcut)?
Open the M file
The menu (File? Open)? Command operation (edit M file)? Command button (shortcut)? Click on the M file
Five
A programming example
Example: mesh rendering with radius 3 ball
Command line:
u=[0:pi/60:2*pi]; v=[0:pi/60:pi]; [U, V]=meshgrid (U, V); R=3; X=R*sin (V).*cos (U); Y=R*sin (V).*sin (U); Z=R*cos (V); mesh (X, Y, Z); axis equal;
Programming: a new M file myprg1.m, as follows:
U=[0:pi/60:2*pi]; v=[0:pi/60:pi]; [U, V]=mes
您可能关注的文档
- iwork和office转换简述(我和办公室转换简述).doc
- j2me移植-键值(J2ME transplantation - key).doc
- j2ee初学者需要理解的问题(J2EE beginners need to understand the problem).doc
- j2me初探(Preliminary study of J2ME).doc
- j2ee开发项目10大风险总结(下)(J2EE development project 10 risk summary (next)).doc
- isbn(国际标准书号)的校验(ISBN (ISBN) check).doc
- jas风机(JAS fan).doc
- ip地址划分教程(IP address division tutorial).doc
- java pattern和matcher 的用法(java pattern和matcher 的用法).doc
- java web 中相对路径绝对路径问题总结(Summary of relative path absolute path problem in Java Web).doc
- matlab读写文件(Matlab read and write files).doc
- matlab求解线性规划(matlab求解线性规划).doc
- m65的历史(History of M65).doc
- mat与access关联(Mat is associated with access).doc
- matlab进行文件读写操作(Matlab file read and write operations).doc
- max125中文资料及应用(MAX125 Chinese materials and Applications).doc
- max插件讲解(Max plug-in explains).doc
- maya mel中脚本的运用(The use of scripts in Maya Mel).doc
- maya渲染设置2(Maya render settings 2).doc
- mba全套中文教程-生产与运作原理-第二部-datat0105(MBA complete Chinese tutorial - production and operation principle - second -datat0105).doc
文档评论(0)