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

1 回表示 (過去 30 日間)
Anne Arseneau
Anne Arseneau 2023 年 6 月 6 日
編集済み: Manoj Mirge 2023 年 8 月 17 日
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 Center および File ExchangeEnvironment and Settings についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by