Issue: Unable to resolve the name coder.internal.rnd
23 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Dear all,
I am runnunig matlab 2019b on a linux cluster.
I am getting the following issue after launching matlab (with matlab -nodisplay) and running a simple function. I guess this is something related to the path, and I also could not get the first warning, since there is no file called randg in the start path.
Any help appreciated.
Patrick
< M A T L A B (R) >
Copyright 1984-2019 The MathWorks, Inc.
R2019b (9.7.0.1190202) 64-bit (glnxa64)
August 21, 2019
Warning: Function randg has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.
To get started, type doc.
For product information, visit www.mathworks.com.
>>
>> y = exprnd(10,50,1);
Unable to resolve the name coder.internal.rnd.
Error in exprnd (line 10)
r = coder.internal.rnd('exprnd',mu,varargin{:});
3 commentaires
Walter Roberson
le 8 Juin 2020
you need the Statistics And Machine Learning Toolbox.
You should not add the path you added: it is only for use in MATLAB Coder.
Réponses (2)
Steven Lord
le 9 Juin 2020
You should not try to add directories in MathWorks products under matlabroot to the path. If they're supposed to be on the path, they should be added to the path automatically by the installer and/or Add-On Manager when the toolbox is installed.
If the path gets corrupted to the point where MATLAB isn't working, restoredefaultpath then add the directories containing your files to the path.
The files in that eml subdirectory, I believe, are intended only to be used by MATLAB Coder when generating code from Statistics and Machine Learning Toolbox function. But by adding that directory to the path, you make them available to everyone.
Voir également
Catégories
En savoir plus sur MATLAB Parallel Server dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!