Categorical Function Fails: Matlab 2019a

조회 수: 1 (최근 30일)
smsinks
smsinks 2019년 4월 4일
편집: smsinks 2019년 4월 4일
I just installed MATLAB 2019a and it seem that the "categorical" function not work. Now even on the MATLAB example.
I get the following error:
Undefined function 'categorical' for input arguments of type 'cell'.
which categorical
returns
/Applications/MATLAB_R2019a.app/toolbox/distcomp/parallel/@codistributed/categorical.m % codistributed method
My code works with no problem in MATLAB 2018b. Here
which categorical
returns
/Applications/MATLAB_R2018b.app/toolbox/matlab/datatypes/@categorical/categorical.m % categorical constructor
Would an one know what's going on here?
Thanks
  댓글 수: 2
dpb
dpb 2019년 4월 4일
Try with the -all option
which -all categorical
just to see what it says...
Seems hard to imagine such would have passed pre-release QC checks if isn't something munged in the distribution/download/install process...
I presume you have tried a restart and the symptom remains?
smsinks
smsinks 2019년 4월 4일
편집: smsinks 2019년 4월 4일
Thanks dpb.
which -all categorical
only returned two categorical.m locations.
/Applications/MATLAB_R2019a.app/toolbox/matlab/bigdata/@tall/categorical.m % tall method
/Applications/MATLAB_R2019a.app/toolbox/distcomp/parallel/@codistributed/categorical.m % codistributed method
Whereas MATLAB 2018b returns three categorical.m files
/Applications/MATLAB_R2018b.app/toolbox/matlab/datatypes/@categorical/categorical.m % categorical constructor
/Applications/MATLAB_R2018b.app/toolbox/matlab/bigdata/@tall/categorical.m % tall method
/Applications/MATLAB_R2018b.app/toolbox/distcomp/parallel/@codistributed/categorical.m % codistributed method
So I looked inside the MATLAB 2019a Application Installation file and found a third categorical.m file in the datatypes/@categorical/ folder, which for some reason unknown to me MATLAB 2019a could not read.
From here, I just reset the search path and now ALL IS FINE.
Thanks once more.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Matrix Indexing에 대해 자세히 알아보기

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by