科学计算科学计算 (19).pdf
《科学计算科学计算 (19).pdf》由会员分享,可在线阅读,更多相关《科学计算科学计算 (19).pdf(10页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、3.6 3.6 Definition and Call of Function Definition and Call of Function FileFileBasic structure of function fileFunction callAnonymous function1.Basic Structure of Function 1.Basic Structure of Function FileFilefunction formal output arguments list=function name(formal input arguments list)Annotatio
2、nsFunction body statementIf there are more than one formal output argument,they should be put in square brackets to form an output matrix.The name of a function file usually consists of the function name and an extension name.m.When the name of a function file and the function name are different,MAT
3、LAB willignore the function name and use the name of the function file when calling the function.The return statement indicates the end of function execution.Generally,the returnstatement is not used in the function file,so the called function will return automaticallyafter execution.Example 1 Creat
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 科学计算科学计算 19 科学 计算 19
限制150内