An M-file consists of a sequence of normal MATLAB statements, which possibly include references to other M-files. An M-file can call itself recursively. You can create M-files using a text editor or word processor. Two types of M-files can be used: script and function. Script, or script files, automate long sequences of commands. Functions, or function files, provide extensibility to MATLAB. They allow you to add new functions to existing function. Much of the power of MATLAB derives from this ability to create new function that solve user-specific problems. Both scripts and functions are ordinary ASCII text files.
基于1个网页-相关网页
应用推荐