1

我已经将我的一维数据(1000*1 矩阵)建模为 3 个高斯,使用

gmdistribution.fit(X,3) 

我怎样才能绘制这样的东西?

它显示了给定点属于每个类的概率。

在此处输入图像描述

4

1 回答 1

0

Write a function plotGaussian, which takes the mean, the variance, and a range of values. The function should generate the points to plot, and call the plot function. Then do hold on, and call plotGaussian 3 times.

于 2014-08-14T20:51:56.210 回答