When running “sp.testSi​ngleModel(​'mflaser', 'value', 20230428);”, I got error:

1 次查看(过去 30 天)
I hope this email finds you well and I need some help to run MATLAB on Linux.
When running “sp.testSingleModel('mflaser', 'value', 20230428);”, I got error:
compareSignature warning: mismatch in cache dates in field hostName (WV-SKONG-PC vs asvrd3).
compareSignature warning: mismatch in cache dates in field isUnix (0 vs 1).
compareSignature warning: mismatch in cache dates in field pwd (R:\skong\MATLAB Codebase\stockPortfolio vs /nfs/research/skong/MATLAB Codebase/stockPortfolio).
compareSignature warning: mismatch in cache dates in field userName (SKong vs skong).
Error using save
Unable to write file cache/cfg_mflaser_simulation: permission denied.
Error in sp.cfg.set (line 158)
save(sprintf('cache/cfg_%s_%s',cfg.fundName,cfg.runType),'cfg');
Error in sp.testSingleModel (line 79)
sp.cfg.set(fundName,simStartDate,modelDate,startDateData,endDateData,'simulation',runDate,runTime);
When I tried, “touch myfile.txt”, I got error:
touch: cannot touch ‘myfile.txt’: Permission denied
Could you please kindly help me with this? Thank you so much for your time and help!
Best regards,
SarahI hope this email finds you well and I need some help to run MATLAB on Linux.
When running “sp.testSingleModel('mflaser', 'value', 20230428);”, I got error:
compareSignature warning: mismatch in cache dates in field hostName (WV-SKONG-PC vs asvrd3).
compareSignature warning: mismatch in cache dates in field isUnix (0 vs 1).
compareSignature warning: mismatch in cache dates in field pwd (R:\skong\MATLAB Codebase\stockPortfolio vs /nfs/research/skong/MATLAB Codebase/stockPortfolio).
compareSignature warning: mismatch in cache dates in field userName (SKong vs skong).
Error using save
Unable to write file cache/cfg_mflaser_simulation: permission denied.
Error in sp.cfg.set (line 158)
save(sprintf('cache/cfg_%s_%s',cfg.fundName,cfg.runType),'cfg');
Error in sp.testSingleModel (line 79)
sp.cfg.set(fundName,simStartDate,modelDate,startDateData,endDateData,'simulation',runDate,runTime);
When I tried, “touch myfile.txt”, I got error:
touch: cannot touch ‘myfile.txt’: Permission denied
Could you please kindly help me with this? Thank you so much for your time and help!
Best regards,
Sarah

回答(1 个)

Manoj Mirge
Manoj Mirge 2023-8-17
编辑:Manoj Mirge 2023-8-17
The error indicates that the MATLAB user who is running the MATLAB does not have permission to access and write to the files from specific folder.
To work around this issue kindly open MATLAB as the user who has access to the files which the “sp.testSingleModel” function is trying to access.
You can check the names of users who have access to the specific files by inspecting the permission properties of specific folder.
Hope this helps.

类别

Help CenterFile Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息

产品


版本

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by