|
帮助文件里面写的很清楚,可以选择性的保存- Saving Selected Variables
- To save selected variables from the workspace, list the variables in the call to the save function. For example, if the current workspace contains variables A through Z, save B and C to bc.mat as follows:
- save('bc.mat', 'B', 'C')
- To save variables with names that match a pattern, use one of the following options:
- *
- Include the wildcard character (*). For example, save all variables that start with str to a file named strinfo.mat:
- save('strinfo.mat', 'str*')
- *
- Apply the -regexp option, which matches variables to regular expressions. For example, save all variables that start with Mon, Tue, or Wed to a file named myfile.mat:
- save('myfile.mat', '-regexp', '^Mon|^Tue|^Wed')
- For more information, see Regular Expressions in the MATLAB Programming Fundamentals documentation.
复制代码 |
评分
-
1
查看全部评分
-
|