help on this code error
Infos
Cette question est clôturée. Rouvrir pour modifier ou répondre.
Afficher commentaires plus anciens
Hi all
I have this code but it still has error
can any one solve it ?
clear mixture;
mixtrue.dist='Exponential';
mixtrue.K=2;
mixtrue.weight=[0.1 0.9];
mixtrue.par=[1 10];
data=simulate(mixtrue,100);
data.Strue=data.S;
data=rmfield(data,'S');
dataplot(data)
clear mix;
mix.dist='Exponential';
mix.K=2;
prior=priordefine(data,mix);
[data,mix,mcmc]=mcmcstart(data,mix);
mcmcout=mixturemcmc(data,mix,prior,mcmc);
mcmcplot(mcmcout,2);
[est,mcmcout]=mcmcestimate(mcmcout);
[marlik,mcmcout]=mcmcbf(data,mcmcout)
mcmcout.name= 'store_mix_exponential_K2';
mcmcstore(mcmcout);
2 commentaires
Walter Roberson
le 7 Nov 2013
What difficulty do you see when you try?
mutah
le 7 Nov 2013
Réponses (1)
John Mahoney
le 7 Nov 2013
0 votes
Are you mixing up "mixture" and "mixtrue"?
1 commentaire
mutah
le 7 Nov 2013
Cette question est clôturée.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!