Borrar filtros
Borrar filtros

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

2 visualizaciones (últimos 30 días)
Anne Arseneau
Anne Arseneau el 6 de Jun. de 2023
Editada: Manoj Mirge el 17 de Ag. de 2023
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

Respuestas (1)

Manoj Mirge
Manoj Mirge el 17 de Ag. de 2023
Editada: Manoj Mirge el 17 de Ag. de 2023
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.

Categorías

Más información sobre Introduction to Installation and Licensing en Help Center y File Exchange.

Productos


Versión

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by