Multivariate Normal Distribution : Error using mvnpdf (line 67)
조회 수: 6 (최근 30일)
이전 댓글 표시
Hello everyone,
for the analysis of a measurement I'm trying to use the multivariate normal distribution function mvnpdf.
loglik1 = sum(log(w*mvnpdf(all_energy1, mu1, Sigma)));
Error using mvnpdf (line 67)
X and MU must have the same number of columns.
I'm using Matlab R2020b.
댓글 수: 0
답변 (1개)
Walter Roberson
2023년 4월 4일
mvnpdf does not accept cell for any parameters.
mvnpdf does not accept a series of different mu with the intention of evaluating X at each of the mu. The provided mu must have the same number of columns as X and must either have one row or else be the same size as X
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!