EmotivEEG headset toolbox
Used to query the EDK library in order to recieve EEG data from the Emotiv EEG headset
Author: Gavin

I get this error

Warning: Message from C preprocessor:
lcc preprocessor error:
C:\Users\Pototo\Documents\Dropbox\Public\Programming\MATLAB\jPL\edk.h:17 Could not
find include file <string>
lcc preprocessor error:
C:\Users\Pototo\Documents\Dropbox\Public\Programming\MATLAB\jPL\edk.h:18 Could not
find include file <sstream>

> In loadlibrary at 318
In EmotivEEG>EmotivEEG.EmotivEEG at 73
Warning:
'EXP_SENSITIVITY}EE_ExpressivThreshold_t;typedefenumEE_ExpressivTrainingControl_enum{EXP_NONE=0'
exceeds MATLAB's maximum name length of 63 characters and has been truncated to
'EXP_SENSITIVITY}EE_ExpressivThreshold_t;typedefenumEE_Expressiv'.
> In edk_proto at 10
In loadlibrary at 375
In EmotivEEG>EmotivEEG.EmotivEEG at 73
Error loading library intermediate output follows.
The actual error is at the end of this output.
*********

No match found for enum value expression EE_ExpressivAlgo_t in 0x0800}EE_ExpressivAlgo_t;typedefenumEE_AffectivAlgo_enum{AFF_EXCITEMENT=0x0001 expression ignored.
Found on line 412 of input from line 598 of file C:\Users\Pototo\Documents\Dropbox\Public\Programming\MATLAB\jPL\EmoStateDLL.h

No match found for enum value expression EE_AffectivAlgo_t in 0x0008}EE_AffectivAlgo_t;typedefenumEE_CognitivAction_enum{COG_NEUTRAL=0x0001 expression ignored.
Found on line 412 of input from line 598 of file C:\Users\Pototo\Documents\Dropbox\Public\Programming\MATLAB\jPL\EmoStateDLL.h

No match found for enum value expression EE_CognitivAction_t in 0x2000}EE_CognitivAction_t;typedefenumEE_SignalStrength_enum{NO_SIGNAL=0 expression ignored.
Found on line 412 of input from line 598 of file C:\Users\Pototo\Documents\Dropbox\Public\Programming\MATLAB\jPL\EmoStateDLL.h

No match found for enum value expression EE_Event_t in 16|32|64|128|256|512|1024}EE_Event_t;typedefenumEE_ExpressivEvent_enum{EE_ExpressivNoEvent=0 expression ignored.
Found on line 1053 of input from line 1139 of file C:\Users\Pototo\Documents\Dropbox\Public\Programming\MATLAB\jPL\edk.h
*********
Warning: The following error was caught while executing 'EmotivEEG' class
destructor:
Library was not found
Error using loadlibrary (line 419)

There was an error running the loader file. Use the mfilename option to produce a
file that you can debug and fix if needed. Please report this error to the
MathWorks so we can improve this function.

Error in EmotivEEG (line 73)
[notfound,warnings] = loadlibrary('edk.dll','edk.h');
%#ok<NASGU,ASGLU>

Caused by:
Error using struct
Invalid field name
"EXP_SENSITIVITY}EE_ExpressivThreshold_t;typedefenumEE_Expressiv"

I put all the edk.lib and edk.dll, etc, in the matlab folder along with the toolbox, but it still does not work. Also, I don't know how to get access to those libraries such as <sstream>, and all those above at the beginning of the message.

Can you provide a better instruction set on how to set up this library in the appropriate manner?

Than you

28 Jun 2012

EmotivEEG headset toolbox
Used to query the EDK library in order to recieve EEG data from the Emotiv EEG headset
Author: Gavin

is there a way to connect more than one headset with this toolbox?

thanks

29 Jun 2011

K Nearest Neighbors
Program to find the k - nearest neighbors (kNN) within a set of points.
Author: Ani

hello, I am imputing some square matrices, but this algorithm is not working. I though that as long as D is the same for both matrices, this would work. Does that mean that N cannot be equal to M at all???
thanks in advance!!!!!!!

Never mind, now that I have more carefully read your file, I see that covered the 2*pi factor in the frequency digitization and you are not forcing the signal to be real.

5

22 Mar 2010

fshift
Shifts the elements of an array by a (possibly non-integer) given number of elements.

Helpful.
Two comments:
(1) Is the frequency domain shift appearing as:
exp(-1i*s*pi*f)';
Suppose to include a factor of 2 to be consistent with Matlab's definition of the fft, so that:
exp(-1i*s*2*pi*f)';
(2) Concatenate the input signal with it's flipped version, to make it even, to avoid forcing it to be real, then extract the latter half of the signal.

5

25 Apr 2009

fshift
Shifts the elements of an array by a (possibly non-integer) given number of elements.

I had to remove the following from the function: "if isreal(x); y = real(y); end;". With this gone, the output of the fft() of a complex exponential is exactly equal to an fshift()ed sinc().

Comment only