load_bcidat use in matlab

Locked
sandra2014
Posts: 17
Joined: 09 Sep 2014, 09:41

load_bcidat use in matlab

Post by sandra2014 » 26 Sep 2014, 21:50

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.
Attachments
loadError.jpg

sandra2014
Posts: 17
Joined: 09 Sep 2014, 09:41

Re: load_bcidat use in matlab

Post by sandra2014 » 27 Sep 2014, 07:55

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.

Locked

Who is online

Users browsing this forum: No registered users and 4 guests