Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

help on this code error

1 visualización (últimos 30 días)
mutah
mutah el 7 de Nov. de 2013
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
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 comentarios
Walter Roberson
Walter Roberson el 7 de Nov. de 2013
What difficulty do you see when you try?
mutah
mutah el 7 de Nov. de 2013
when i execute this code i found error

Respuestas (1)

John Mahoney
John Mahoney el 7 de Nov. de 2013
Are you mixing up "mixture" and "mixtrue"?
  1 comentario
mutah
mutah el 7 de Nov. de 2013
yes .

La pregunta está cerrada.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by