Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经将我的一维数据(1000*1 矩阵)建模为 3 个高斯,使用
gmdistribution.fit(X,3)
我怎样才能绘制这样的东西?
它显示了给定点属于每个类的概率。
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.
plotGaussian
plot
hold on