필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

help on this code error

조회 수: 2 (최근 30일)
mutah
mutah 2013년 11월 7일
마감: MATLAB Answer Bot 2021년 8월 20일
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
Walter Roberson
Walter Roberson 2013년 11월 7일
What difficulty do you see when you try?
mutah
mutah 2013년 11월 7일
when i execute this code i found error

답변 (1개)

John Mahoney
John Mahoney 2013년 11월 7일
Are you mixing up "mixture" and "mixtrue"?
  댓글 수: 1
mutah
mutah 2013년 11월 7일
yes .

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by