[Eeglablist] Reading in own channel locations

Arnaud Delorme arno at salk.edu
Fri Feb 13 11:48:35 PST 2004


Dear Michael,

I think you did not use the fields in the correct order. Also, you do 
not have to edit the readlocs function to read your file. If your 
location file is named tmpfile.txt (no header lines), try under Matlab

 >> tmp = readlocs('tmpfile.txt', 'format', { 'channum' 'labels' 
'sph_theta_besa' 'sph_phi_besa' 'sph_radius' });
 >> pop_chanedit(tmp);

and that will do it. The advantage of defining the format in readlocs() 
itself (as you tried to do it) is that the exporting function 
(pop_writelocs()) will be able to export to the new format you have 
define. To simply read in your file, the code above might be simplier.

Best

Arno

Michael ten Caat wrote:

>Hello EEGLAB users,
>
>I am experiencing troubles reading in data in the following format:
>
>I looked up information in 'readlocs.m', but the addition of a new channel 
>format appears to me not to be as simple as stated. 
>
>Data format:
>[channum, labels, channel label, sph_radius_besa , sph_theta_besa, 
>sph_phi_besa]
>
>-----------------------------
>     1      Fp1    -68.09708400     -74.16761000      75.05997500
>     2      Fpz     67.20347600      90.00000000      74.84651200
>     3      Fp2     68.09708400      74.16761000      75.05997500
>     4       F7    -63.86862600     -41.98721300      74.92662800
>     5       F3    -37.16592400     -56.65929400      75.29276300
>     6       Fz     27.93714300      90.00000000      74.70609300
>     7       F4     35.86640900      57.03059800      75.27283500
>     8       F8     63.86862600      41.98721300      74.92662800
>     9       A1    -90.00000000      -0.00000000      77.00000000
>    10       T3    -56.94417600      -0.00000000      75.16648100
>    11       C3    -25.20112400      -0.00000000      75.15317500
>
>etc
>----------------------------
>
>  
>


-- 

*Arnaud Delorme, Ph.D.*
Computational Neurobiology Lab, Salk Institute
10010 North Torrey Pines Road
La Jolla, CA 92037 USA

*Tel* : /(+1)-858-458-1927 ext 15/
*Fax* : /(+1)-858-458-1847/
*Web page *: www.sccn.ucsd.edu/~arno <http://www.sccn.ucsd.edu/%7Earno>
*To think upon*:

    Life is not a problem to be solved but a reality to be experienced.

        /Siren Kierkegaard/  

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://sccn.ucsd.edu/pipermail/eeglablist/attachments/20040213/0dd94915/attachment.htm


More information about the Eeglablist mailing list