From: nurul on
hi everyone..

im new in gui matlab.. i got problem in loading the .mat file.
there are several .mat file that being needed for the calculation which it contains data.

and the function to calculate n compare the file class is like this.

..
..
..
testlogliknpVSp=mhmm_logprob(b(:,:),priornp,transmatnp,munp,Sigmanp,mixmatnp);%NOPAIN MODEL
testloglikpVSp=mhmm_logprob(b(:,:),priorp,transmatp,mup,Sigmap,mixmatp); %PAIN MODEL
if testloglikpVSp > testlogliknpVSp
..
..
..

all the priornp, priorp, transmatnp,transmatp, etc need to read all the .mat file.

--->so the question is, how do i load the .mat file(there are 12 files)
so that priornp,transmatnp,munp,Sigmanp,mixmatnp,etc can work fine and read the data? i dont want to use uigetfile to load all the 12 .mat files. and my previous load codes didnt work. please someone help me.

any kind help is so much appreciated