1

I have modeled my 1D data (1000*1 matrix) into 3 Gaussians, using

gmdistribution.fit(X,3) 

How can I plot something Like this?

It shows the probability of a given point belonging to each class.

enter image description here

Rashid
  • 4,326
  • 2
  • 29
  • 54

1 Answers1

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.

Dima
  • 38,860
  • 14
  • 75
  • 115