How do I get rid of this error. Error using monte_carlo_error (line 42) 'normrnd' requires Statistics and Machine Learning Toolbox."

11 vues (au cours des 30 derniers jours)
Dear Sir/Madam
I have a licensed MATLAB R2019a software. I am running a code. It has the following error.
"Error using monte_carlo_error (line 42) 'normrnd' requires Statistics and Machine Learning Toolbox."
Could you please let me know how to solve this error.
Thank you,
Best,
Yarava
  4 commentaires
Torsten
Torsten le 24 Avr 2019
Yes.
But if you only need "normrnd", no. You can use "randn" instead.

Connectez-vous pour commenter.

Réponses (1)

Rik
Rik le 24 Avr 2019
The Statistics and Machine Learning Toolbox is included in the student suite (which is a product you can buy with a student licence type), but if you bought something different, you will have to buy it separately.
But as Torsten mentioned, for this specific function there is an alternative.

Catégories

En savoir plus sur Introduction to Installation and Licensing 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!

Translated by