Warning: Executing startup failed in matlabrc.
이전 댓글 표시
I'm using Matlab 2013b (32-bit). When I open matlab I get the following error. How can I fix it?
"This indicates a potentially serious problem in your MATLAB setup, which should be resolved as soon as possible. Error detected was:
MATLAB:nonStrucReference
Attempt to reference field of non-structure array.
> In matlabrc at 192"
댓글 수: 2
Walter Roberson
2022년 4월 26일
If I recall correctly, there were problems related to that in that time frame. I do not recall the exact cause.
My memory is that in some cases it helps to exit matlab, rename the preferences directory, and restart so it recreates the preferences.
Walter Roberson
2022년 4월 27일
There was a burst of people having that problem in R2013a, it appears. If I understand the approximate translations correctly, some people found it helped to put in a "cd" command at the end of the Mathworks-provided matlabrc file.
Back in the R2006a time-frame, someone posted a problem in which the same error message occured for reasons having to do with not being able to start java.
답변 (1개)
Jan
2022년 4월 26일
0 개 추천
The message you show indicates, that it is a warning, not an error. Does Matlab stop with an error in addition?
- If it is a warning, there is a bug inside startup.m , so debug this.
- If it is an error, the error handling with TRY/CATCH fails. Then exc cannot be access by dot indexing. Maybe your Matlab folder has been destroyed. What have you done before? Are you working with admin privilegs (without them it is impossible to change Matlab's toolbox functions by accident)?
댓글 수: 5
E Sahin
2022년 4월 27일
E Sahin
2022년 4월 27일
Walter Roberson
2022년 4월 27일
When you are having the problem, what shows up for
which -all startup
E Sahin
2022년 4월 27일
Jan
2022년 4월 27일
This means, that the "startup.p" file contains a bug. It is really strange, that this problem occurs only the 2nd time you open Matlab. This could be a racing condition: running a function the first time needs some time to read it from the disk. Then inserting a drawnow or pause(0.02) solves the problem usually. But in your case this is not possible, because the function is stored as encrypted P-file.
There are some methods to examine or change the contents of P-files, but if this is a commenrcial software this might conflict with the license conditions.
Ask the manufacturer of the third-party tool.
카테고리
도움말 센터 및 File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!