solve a issue regarding saving a variable to mat file

1 回表示 (過去 30 日間)
VIJAY KUMAR
VIJAY KUMAR 2016 年 3 月 7 日
回答済み: Walter Roberson 2016 年 3 月 7 日
AnalyseDataLaas Error using save
Hi
I have run my mat lab program (AnalyseDataLaas) and it is working fine after all the processing it is showing this error like this in the command window. please help me
Unable to write file
C:\Data\Users\Alexander\Movies\SavedPlotsAndData\data\Particle_B_(April_04)_particle_1_run3.mat: permission
denied.
Error in AnalyseDataLaas (line 122)
save([savePathData saveName '.mat'],'saveStruct')
regards,
vijay

回答 (1 件)

Walter Roberson
Walter Roberson 2016 年 3 月 7 日
It appears that
C:\Data\Users\Alexander\Movies\SavedPlotsAndData\data\Particle_B_(April_04)_particle_1_run3.mat
might already exist but not be owned by you, or might already exist but be in a directory you do not have write access to (such as if it is on a read-only USB drive.) Please report the results of
fileattrib('C:\Data\Users\Alexander\Movies\SavedPlotsAndData\data\Particle_B_(April_04)_particle_1_run3.mat')
fileattrib('C:\Data\Users\Alexander\Movies\SavedPlotsAndData\data')

カテゴリ

Help Center および File ExchangeSearch Path についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by