having problem with mvnrnd...
显示 更早的评论
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);
采纳的回答
更多回答(2 个)
Roya Kakar
2022-1-19
0 个投票
I don't have Statistics Toolbox in my Matlab, how can I get it?
Roya Kakar
2022-1-19
0 个投票
function p = mygmm(x1,x2, w1, mu1, sigma1, w2, mu2, sigma2)
assert(w1 +w2 == 1.0, 'The weights of the components must add to 1.0')
assert(all([w1 w2] >= 0 & [w1 w2] <=1)),
p = w1 * mvnpdf([x1 x2], mu1, sigma1) + w2 * mvnpdf([x1 x2] , mu2, sigma2);
end
By running the above code I get the following error message:
Not enough input arguments.
类别
在 帮助中心 和 File Exchange 中查找有关 F Distribution 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!