Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: gmdistribution.fit ERROR: Method 'fit' is not defined for class 'gmdistribution' or is removed from MATLAB's search path
Replies: 1   Last Post: Jul 9, 2013 11:02 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Fabio

Posts: 1
Registered: 7/9/13
gmdistribution.fit ERROR: Method 'fit' is not defined for class 'gmdistribution' or is removed from MATLAB's search path
Posted: Jul 9, 2013 6:29 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hi,
I have to use a specific program that contains those rows:

>S = struct('mu',mu,'Sigma',sigma,'PComponents',p);
>options = statset('Display','final','MaxIter', 9000);
>object =gmdistribution.fit(X,NGauss,'Options', options,'Start',S);


but when I launch the program it returns this error:

>Error using gmdistribution.fit
>Method 'fit' is not defined for class 'gmdistribution' or is removed from MATLAB's search path.


>Error in val (line 149)
>object =gmdistribution.fit(X,NGauss,'Options', options,'Start',S);


Into the folder "toolbox/stats/stas" there is the "@gmdistribution" directory, but if I try to create a new path it returns:

>you cannot add method folders(ones that starts with '@'). or private folders to your Matlab search path.

Moreover if i type "gmdistribution" on the command window it returns:

>> gmdistribution

ans =

gmdistribution

Properties:
NDimensions: 0
DistName: 'gaussian mixture distribution'
NComponents: 0
PComponents: [0x1 double]
mu: []
Sigma: []
NlogL: []
AIC: []
BIC: []
Converged: []
Iters: []
SharedCov: []
CovType: []
RegV: 0

Methods

Methods for class gmdistribution:
gmdistribution
Static methods:
fit


but if i type "gmdistribution.fit" it returns:

>> gmdistribution.fit
>Error using gmdistribution.fit
>Method 'fit' is not defined for class 'gmdistribution' or is removed from MATLAB's search path.


Can someone help me? I don't really know why it doesn't work.
Thank you.

Fabio



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.