Page 1 of 1

Matlab in BCI2000

Posted: 26 Mar 2013, 12:11
by HindHaneen
Hello everyone :)

I am trying to interface a matlab algorithm to BCI2000. The code already works fine in the offline mode and I'm trying to make it for the online mode now.

I tried to follow this link:
http://www.bci2000.org/wiki/index.php/P ... sed_Filter

But I found it hard to follow and I didn't really know what to put in the 5 .m files [Process- initialize ..etc]

The code is really simple, it cleans and de-noises basically.. here it is:

function out_signal = bci_Process( in_signal )

level = 5;
wname = 'sym4';
tptr = 'sqtwolog';
sorh = 's';
npc_app = 4;
npc_fin = 4;

[out_signal, npc, nestco] = wmulden(in_signal, level, wname, npc_app, npc_fin, tptr, sorh);

Any advice ??

Re: Matlab in BCI2000

Posted: 26 Mar 2013, 13:12
by boulay
Check your BCI2000/prog/matlab folder. There should be some examples there.