フィルターのクリア

How to place the variables in the workstation into a matrix?

2 ビュー (過去 30 日間)
Layla scbenski
Layla scbenski 2020 年 9 月 29 日
コメント済み: Ameer Hamza 2020 年 10 月 2 日
Hello,
I have used the GMModel on my data, and in the workstation I have results from the model, now I would like to use a few of these generated results and place them in a matrix. How do I do that exactly?
I've been using matlab for a week now, so I'm not very familiar with it yet.
  2 件のコメント
Ameer Hamza
Ameer Hamza 2020 年 9 月 29 日
Can you show in which form do you currently have the result?
Layla scbenski
Layla scbenski 2020 年 10 月 1 日
I'm not sure as what you mean exactly by form, do you mean their type? Regardless, I've attatched a screenshot of the results.
I'd like to use the last 6 results generated from the GMModel and place them in a matrix.

サインインしてコメントする。

回答 (1 件)

Ameer Hamza
Ameer Hamza 2020 年 10 月 2 日
These values are properties of class gmdistribution, you can access them like this
mu_matrix = GMModel.mu;
sigma_matrix = GMModel.Sigma;
..
..
You cannot place them in a single matrix because they all have different sizes. The other alternative is to place them in cell array
M = {GMModel.mu, GMModel.Sigma}
  2 件のコメント
Layla scbenski
Layla scbenski 2020 年 10 月 2 日
Hello Mr. Ameer,
I appreciate your help, thank you very much!
As you have realized I am a noob.
Isn't there a way to get results for these 6 variables only? In which the GMModel would be generating results for these 6 variables?
something like:
[mu,sigma,AIC,BIC,Converged,ProbabilityTolerance]=fitgmdist(coeffs,2);
(coeffs= result grenerated from mfcc).
Is there really no way to place them in a matrix whatsoever?
Thank you in advance Mr. Ameer.
Ameer Hamza
Ameer Hamza 2020 年 10 月 2 日
fitgmdist always returns the gmdistribution object. You will need to manually assign those values to separate variables, as I have shown in the answer.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeDescriptive Statistics についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by