Simulink 不从 .mat 文件加载数据
Simulink does not load data from .mat file
我正在尝试使用“来自文件”块将我的数据从 Simulink 中的 .mat 文件加载到我的仿真模型中。我正在使用 Matlab 2012a。我的数据文件是一维实数矢量(双精度型),尺寸为 1x200。
当我 运行 我的模拟时出现以下错误:
在 Matlab 首选项中,我已经将设置“保存可以加载的 MAT 文件”设置为选项“Matlab 版本 7.3 或更高版本”,但这不起作用。我也测试过这种方法但没有成功:http://www.mathworks.com/matlabcentral/answers/47422-simulink-does-not-support-loading-the-input-data-in-file
如果有任何想法,我将不胜感激。
根据 From File
块帮助中的文档(通过按块对话框上的 Help
按钮获得):
Matrix format can be used only for vector, double, noncomplex signals. Each
column of the matrix must have a time stamp in the first row and a vector
containing the corresponding data sample in the subsequent rows.
您的 1x200 矢量与此格式不匹配。您需要添加代表时间的第一行。
我正在尝试使用“来自文件”块将我的数据从 Simulink 中的 .mat 文件加载到我的仿真模型中。我正在使用 Matlab 2012a。我的数据文件是一维实数矢量(双精度型),尺寸为 1x200。
当我 运行 我的模拟时出现以下错误:
在 Matlab 首选项中,我已经将设置“保存可以加载的 MAT 文件”设置为选项“Matlab 版本 7.3 或更高版本”,但这不起作用。我也测试过这种方法但没有成功:http://www.mathworks.com/matlabcentral/answers/47422-simulink-does-not-support-loading-the-input-data-in-file
如果有任何想法,我将不胜感激。
根据 From File
块帮助中的文档(通过按块对话框上的 Help
按钮获得):
Matrix format can be used only for vector, double, noncomplex signals. Each
column of the matrix must have a time stamp in the first row and a vector
containing the corresponding data sample in the subsequent rows.
您的 1x200 矢量与此格式不匹配。您需要添加代表时间的第一行。