Error loading .mat
古いコメントを表示
When I tried to load a .mat file, there was an error: cannot read file. The data is from exported from simulink using "to Workspace" block.
I have tried adding the folder into the path, but the error is still there.
>> load('Data.mat')
Error using load
Cannot read file C:\Users\Desktop\Work\Varying\Type1\Data.mat.
4 件のコメント
stozaki
2020 年 2 月 9 日
addpath(genpath(('C:\Users\Desktop\Work\Varying\Type1\')));
load('Data.mat');
Walter Roberson
2020 年 2 月 9 日
The problem is not in locating the file so addpath is not going to help here.
The file was found in the indicated location but the user did not have permission to read it, or it is locked.
Possibly the file is empty, but I seem to recall that you get a different message for that.
You would get a different message if the file exists and is readable but is not valid.
Is it possible that Simulink still has the model running? The file might be locked if so.
EngTat Chung
2020 年 2 月 9 日
EngTat Chung
2020 年 2 月 9 日
回答 (1 件)
Jesús Zambrano
2020 年 3 月 27 日
0 投票
Could you replicate this behavior? I would also like to know the size of this mat-file.
カテゴリ
ヘルプ センター および File Exchange で Interactive Model Editing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!