필터 지우기
필터 지우기

Ezplot using Functions for PDF plotting

조회 수: 4 (최근 30일)
Kash022
Kash022 2019년 3월 20일
Hello,
I am trying to ezplot a GMM model which I have made.
mu = mean(score,2); % score is a 2500x10 double
cov_sigma = cov(score); % 10x10 double
gm= gmdistribution(mu,cov_sigma); % GMM distibution object
yyy = pdf(gm,score); % 2500x1 double which is my PDF matrix
figure; ezplot(@(x) pdf(gm,x)); % I think I should be using yyy here but this is where I start to get lost; either way doing that also doens't work %
gmm_error.JPG
So I understand that "x" needs to be a row vector; but how do I define its range? (even yyy doesn't work for me) Sorry, but I have always had this issue with plotting pdf's given functions and ranges. Or is there any other way of plotting it at all? (I have already seen, tried and failed using MathWorks-this, this and MathWorks-also this)
Any assistance will be highly appreciated! Thanks!
~Kash022

답변 (0개)

카테고리

Help CenterFile Exchange에서 Graphics Object Properties에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by