mathlab code(help!)

Thread Starter

saghar19

Joined Jul 16, 2012
38
Hi
I have an EEG data with LED format and i want to open it with matlab and then analyze with FFT.I don't know how!?:confused:
please help me. I need your emergency help!
thanks
 
Last edited:

Thread Starter

saghar19

Joined Jul 16, 2012
38
I think i should more explain,
I have recorded two EEG channels at the same time and i want to open the EEG data with matlab and then calculate fft of each channel separately(to compare them).
String precision is int16 and data format is LED.
How can i do that????
 

WBahn

Joined Mar 31, 2012
30,060
How did you record the data? Have you looked for documentation associated with the equipment that produced the recording?

Also, when you say "these file formats were produced", do you actually mean that you know that those are the designations for the file formats, or just that those are the extensions of three files that were written?
 

WBahn

Joined Mar 31, 2012
30,060
Would you mind providing a bit of information about what you did. It might help other people in the future.
 

Thread Starter

saghar19

Joined Jul 16, 2012
38
Would you mind providing a bit of information about what you did. It might help other people in the future.
It's not hard:

A=fopen('file name.LED','r');
eeg=fread(A,precision)
Now you have an array that is containing ur data samples,and now u can do other analysis that u want.
Just it
Nothing new!;)
 

Thread Starter

saghar19

Joined Jul 16, 2012
38
You did not say what is precision and what does LED stand for.
As i said in #1,#2 posts,LED is the format of my eeg data.
Precision "contains a data type specifier such as int or float,followed by an integer giving the size in bits".It depends on ur particular eeg machine.
 

WBahn

Joined Mar 31, 2012
30,060
As i said in #1,#2 posts,LED is the format of my eeg data.
Precision "contains a data type specifier such as int or float,followed by an integer giving the size in bits".It depends on ur particular eeg machine.
Why do you think that saying that the file is LED format is going to mean anything to anyone here? The fact that MatLab was able to open it probably means that it is an ASCII file, but that doesn't say anything about how the contents are formatted.

I tried to do a quick search and found several EEG formats, such as the ones described here:

http://paulbourke.net/dataformats/eeg/

But I couldn't find any LED format description. For all we know, it's Larry's EEG Data format.

Now, this appears to be a mute point because you've apparently gotten things to work, although it seems like it would have been hard to work with the data in the file without knowing how it is organized (unless you are using someone else's MatLab routines to analyze the data, which is fine and dandy if that's the case).
 

Thread Starter

saghar19

Joined Jul 16, 2012
38
Oops!
There was a big misunderstand!:D
Now i understand your meaning.
This file contains 24 EEG channel samples with string presicion of int16(2 bytes for each channel as i know)
Was it your question? or there are other unclear points???:rolleyes:
 

MrChips

Joined Oct 2, 2009
30,810
My question is, what does the file extension LED mean?
For example,

.doc = document
.lst = list
.txt = text
.bin = binary
.dll = dynamically linked library
.fig = figure
.m = meta
 

WBahn

Joined Mar 31, 2012
30,060
Oops!
There was a big misunderstand!:D
Now i understand your meaning.
This file contains 24 EEG channel samples with string presicion of int16(2 bytes for each channel as i know)
Was it your question? or there are other unclear points???:rolleyes:
Getting close. I have a pretty good idea of what the format probably is, but there are some ambiguities still. Tell you what, if you could post a few lines from the file, say enough to have at least four samples from each channel, then I will write a description of what I think the format is. From that, you will see the kinds of things that it takes to properly describe a file format.
 

WBahn

Joined Mar 31, 2012
30,060
My question is, what does the file extension LED mean?
For example,

.doc = document
.lst = list
.txt = text
.bin = binary
.dll = dynamically linked library
.fig = figure
.m = meta
I think it's an ad hoc and/or proprietary file extension.
 
Top