In matlabrc at 212
조회 수: 3 (최근 30일)
이전 댓글 표시
I have error using matlab.
like this
Warning: Executing startup failed in matlabrc.
This indicates a potentially serious problem in your MATLAB setup,
which should be resolved as soon as possible. Error detected was:
MATLAB:load:couldNotReadFile
Unable to read file matlab.mat: No such file or directory.
> In matlabrc at 212
I made new file named "starup.m".
its location is "C:\Program Files\MATLAB\R2012a\toolbox\local"
its content is :
startup
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1402474/image.png)
startupsav
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1402479/image.png)
how to solve this prolbem?
댓글 수: 0
채택된 답변
Rik
2023년 6월 5일
In general you should never touch files in the Matlab installation folder.
In this case the solution is simple: you didn't create a finish.m file that saves a mat file. Now you try to read that non-existent mat file, which fails. You should make sure such a mat file exists, preferably using a relative path (e.g. with mfilename('fullpath') ) and compose different parts with the fullfile function.
In other words, you should change the example to what you actually want to happen.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!