フィルターのクリア

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 Center および File ExchangeGraphics Object Properties についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by