Invalid character code sequence detected. error using parfor on MATLAB2020b
이전 댓글 표시
I am on MacOS Big Sur matlab version 2020b. When I call parfor from a script it gives error message ": Invalid character code sequence detected.". When I looked a bit more I got the below message:
The list of cluster profiles failed to load and so they are unusable. To recover, check the reason and restart MATLAB.
Reason: Invalid character code sequence detected. Any idea how to solve this?
댓글 수: 3
Srinivasan Radhakrishnan
2020년 11월 13일
I am facing the same issue while trying to open classification and regression app
Sourabh Kondapaka
2020년 11월 16일
편집: Sourabh Kondapaka
2020년 11월 16일
Before you run the script, can you check the cluster profile on which you are running the script is successfully
validated ? To check this :
Under Home tab, in the ENVIRONMENT section, click on Parallel and select Create and Manage clusters.
Select your cluster profile on which you intend to run your code, right click on it and choose Set as Default.
Now click on Validate button. If all stages pass, then try running your code again.
If any stage fails, update your question with a screenshot of failed stage along with the logs.
Along with it update the question with the code where the matlab throws an error.
btskzn
2020년 11월 17일
채택된 답변
추가 답변 (1개)
James Meiss
2022년 12월 8일
0 개 추천
I have this problem with Matlab 2021b under MacOS 12.5.7.
I checked the hostname and paths. They have no non-English Characters (that I can discern).
When I run parallel.Settings, I get:
Warning: The following error was caught while executing 'parallel.internal.settings.NamedNodesCollection' class
destructor:
Error using parallel.internal.settings.CustomSettingsGetSet/get
Undefined function 'num2cell' for input arguments of type 'logical'.
Error in parallel.internal.settings.NamedNode/get.Name (line 112)
name = obj.get(parallel.internal.settings.NamedNode.AliasKeyName);
Error in parallel.settings.Profile/delete (line 104)
validator.deleteStatus(objOrObjs(ii).Name);
Error in parallel.internal.settings.NamedNode/hInvalidate (line 402)
delete(objOrObjs, 'invalidateOnly');
Error in parallel.internal.settings.NamedNodesCollection/delete (line 58)
obj.CachedNodes.hInvalidate();
Error in parallel.Settings/clearProperties (line 592)
obj.ProfilesCollection = [];
Error in parallel.Settings/delete (line 372)
obj.clearProperties();
Error in parallel.Settings (line 335)
obj.delete();
> In parallel/Settings/clearProperties (line 592)
In parallel/Settings/delete (line 372)
In parallel.Settings (line 335)
Incorrect number or types of inputs or outputs for function 'num2cell'.
Error in parallel.Settings (line 336)
throw(err);
카테고리
도움말 센터 및 File Exchange에서 Entering Commands에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!