Programming
Scripts, functions, and classes
When you have a sequence of commands to perform repeatedly or that you want to save for future reference, store them in a program file. The simplest type of MATLAB®program is ascript, which contains a set of commands exactly as you would type them at the command line. For additional programming flexibility, create功能which accept input and return outputs. When you have specialized data structures or require many functions to interact with special kinds of data, createclassesusing object-oriented programming techniques.
Catégories
- Scripts
基本的程序文件 - Functions
Programs that accept inputs and return outputs - Live Scripts and Functions
Program files that can include formatted text, images, and output to explain the code - Classes
Create new types of objects to use in MATLAB using object-oriented programming - Files and Folders
File operations, MATLAB search path - Programming Utilities
Evaluate expressions or functions indirectly, set timers, handle exceptions