节省
将工作区变量保存到文件
句法
保存(文件名)
节省(filename,variables)
保存(文件名,变量,FMT)
节省(filename,variables,version)
保存(文件名,变量,版本,“ - nocompression'))
节省(filename,variables,'-append')
保存(文件名,变量,' - append',' - nocompression')
保存文件名
描述
节省(
将当前工作空间中的所有变量保存在MATLAB中®格式ted binary file (MAT-file) calledfilename
)filename
。如果filename
exists,节省
覆盖文件。
例子
输入参数
提示
s一个ving graphics objects with the
节省
函数可能会导致一个大文件,因为该文件包含重新生成对象所需的所有信息。避免使用
节省
功能。使用节省fig
function instead. Using节省
在R2014B或更晚的时间内保存一个数字,使MATLAB版本中的垫子无法访问。如果您使用节省
为了保存图形,该功能显示警告消息。使用之前删除所有数字节省
。Keep in mind that the figures might not be directly in your workspace. For example, they might be stored in a structure or in the workspace of a callback function.
Introduced before R2006a
Was this topic helpful?