필터 지우기
필터 지우기

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 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