[Eeglablist] 'Writecnt' function

arno arno at salk.edu
Wed Mar 22 06:01:34 PST 2006


Christopher.Brown at manchester.ac.uk wrote:
> Hello,
>
> Has anybody had success using the 'writecnt' function? I'm trying to convert
> ICA-corrected data back into Neuroscan format. When I try to load the
> function by typing "writecnt(test.cnt,cntdataset)" it responds with "???
> Undefined variable 'test' or class 'test.cnt'". Am I correct in thinking the
> first input should be the filename I wish to save the file as?
>   
You should better write

writecnt('test.cnt',cntdataset)

The filename has to be in quote, otherwise Matlab sees it as a variable 
name.

Arno
> Also, the 'loadcnt' function doesn't produce a field called 'endtag' - is
> this field necessary to use 'writecnt' or can I delete this line from the
> script?
>
> Cheers,
> Chris
>
> Christopher Brown 
> Human Pain Research Group 
> Clinical Sciences Building, 
> Hope Hospital, 
> Eccles Old Road, 
> SALFORD, 
> M6 8HD 
> 0161 2064528 
> www.hop.man.ac.uk/painresearch




More information about the eeglablist mailing list