error when using function normrnd
조회 수: 19 (최근 30일)
이전 댓글 표시
Hi,
I had an error using the function "normrnd" for generating random samples in a normal distribution today.
My code reads like this:
n1 = normrnd(1:6,1./(1:6))
the error reads like this:
Undefined function 'normrnd' for input arguments of type 'double'.
Could someone please help me with this problem?
Thanks a lot! Linxi
댓글 수: 0
답변 (1개)
Walter Roberson
2017년 4월 12일
You do not have the Statistics toolbox installed and/or licensed.
If you are using a Student license then you probably forgot to install the Statistics toolbox.
댓글 수: 2
Walter Roberson
2022년 10월 19일
If you are using a recent matlab then the Add-on Explorer can be used to install toolboxes that you have licensed.
참고 항목
카테고리
Help Center 및 File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!