MATLAB Answers

having problem with mvnrnd...

9 views (last 30 days)
i'm having problem with the mvnrnd.. its when i run the coding, it says "Undefined function'mvnrnd' for input arguments of type 'double'".. the coding is below..i don't know if i'm overlook at certain part..help me please.. i'm new to Matlab.
X1=mvnrnd(mu1,sigma,n1);

  0 Comments

Sign in to comment.

Accepted Answer

Al Dente
Al Dente on 5 Aug 2015
matlab is basically telling you that it can't find the function:
which mvnrnd
will probably result in: 'mvnrnd' not found
mvnrnd is part of the statistics toolbox, type 'ver' in matlab and see if you have it.
ver
% Stateflow Coder Version 7.6.1 (R2010bSP1)
% Statistics Toolbox <-- Version 7.4 (R2010bSP1)
% Symbolic Math Toolbox Version 5.5 (R2010bSP1)

  1 Comment

Nadhirah Jofri
Nadhirah Jofri on 5 Aug 2015
erm..ok, it seems like i don't have that Statistic toolbox.. thanks for the info...

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!