Page 1 of 1

load_bcidat use in matlab

Posted: 26 Sep 2014, 21:50
by sandra2014
Hi every!
I have a question that is the "load_bcidat" can only load the .dat file which is in the same storage position with the "load_bcidat.m" and "load_bcidat.mexw32" ?
I want to load some .dat files which are in another folder by means of "load_bcidat.m" in matlab, but some error occur.
Anyone can help me ?

Thanks ,
Sandra.

Re: load_bcidat use in matlab

Posted: 27 Sep 2014, 07:55
by sandra2014
I have solve this problem.
Because matlab load the .dat file according the file path ,but the "load_bcidat.m " will can't find when the workpath re-set to the data path .
By means of the following method will work.
filename = strcat(pathname,filename);
[signal, states, parameters] = load_bcidat(filename);
pathname is the data file path name . filename is the dat file which you want to load into matlab.