Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- MU1 = [1 2];
- SIGMA1 = [2 0; 0 .5];
- MU2 = [-3 -5];
- SIGMA2 = [1 0; 0 1];
- X = [mvnrnd(MU1,SIGMA1,1000);mvnrnd(MU2,SIGMA2,1000)];
- options = statset('Display','final');
- obj = gmdistribution.fit(X,2);
- => file named gmdistrib.m:
- ??? Error using ==>
- gmdistribution.subsref at 45
- Static method 'fit' must be called by
- using the class name 'gmdistribution'.
- Error in ==> gmdistrib at 8
- obj = gmdistribution.fit(X,2);
- => file name gmdistribution.m -> works as expected
Add Comment
Please, Sign In to add comment