Home > bioelectromagnetism > create_brainstormsubject.m

create_brainstormsubject

PURPOSE ^

SYNOPSIS ^

This is a script file.

DESCRIPTION ^

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 
0002 
0003 Anatomy = '';
0004 Comments = '';
0005 DateOfAcquisition = '';
0006 DateOfModification = '';
0007 Name = '';
0008 Tesselation = '';
0009 TriConn = '';
0010 VertConn = '';
0011 
0012 SUB( 1).id = 'c01'; SUB( 1).name = '';  SUB( 1).date = '26-Jan-1997';
0013 SUB( 2).id = 'c02'; SUB( 2).name = '';  SUB( 2).date = '';
0014 SUB( 3).id = 'c03'; SUB( 3).name = '';  SUB( 3).date = '';
0015 SUB( 4).id = 'c04'; SUB( 4).name = '';  SUB( 4).date = '';
0016 SUB( 5).id = 'c05'; SUB( 5).name = '';  SUB( 5).date = '';
0017 SUB( 6).id = 'c06'; SUB( 6).name = '';  SUB( 6).date = '';
0018 SUB( 7).id = 'c07'; SUB( 7).name = '';  SUB( 7).date = '';
0019 SUB( 8).id = 'c08'; SUB( 8).name = '';  SUB( 8).date = '';
0020 SUB( 9).id = 'c09'; SUB( 9).name = '';  SUB( 9).date = '';
0021 SUB(10).id = 'c10'; SUB(10).name = '';  SUB(10).date = '';
0022 
0023 subjpath  = 'd:\matlab\brainstorm_v1\subjects';
0024 studypath = 'd:\matlab\brainstorm_v1\studies';
0025 
0026 for s = 1:10,
0027     
0028     fprintf('...processing %s\n',SUB(s).id);
0029     
0030     subjfile  = sprintf('%s\\%s%02d\\%s%02d_brainstormsubject.mat',subjpath, char(g),s,char(g),s);
0031     studyfile = sprintf('%s\\%s%02d\\%s%02d_brainstormstudy.mat',  studypath,char(g),s,char(g),s);
0032     
0033     %load(subjfile)
0034     
0035     Comments = 'PTSDPET PROJECT';
0036     
0037     DateOfAcquisition = SUB(s).date;
0038     
0039     DateOfModification = date;
0040     
0041     Name = SUB(s).name;
0042     
0043     Anatomy = sprintf('%s%02d\\%s%02d_subjectimage.mat',char(g),s,char(g),s);
0044     
0045     Tesselation = sprintf('%s%02d\\%s%02d_subjecttess.mat',char(g),s,char(g),s);
0046     
0047     TriConn = '';
0048     VertConn = '';
0049     
0050     save(subjfile,'Comments','DateOfAcquisition','DateOfModification',...
0051         'Name','Anatomy','Tesselation','TriConn','VertConn');
0052     
0053     
0054     % Setup and save the brainstormstudy.mat file in studies directory
0055     
0056     BrainStormSubject = sprintf('%s%02d\\%s%02d_brainstormsubject.mat',char(g),s,char(g),s);
0057     
0058     DateOfStudy = DateOfAcquisition;
0059     
0060     Session = 'ERP';
0061     
0062     save(studyfile,'BrainStormSubject','DateOfModification','DateOfStudy',...
0063         'Name','Session');
0064     
0065 end

Generated on Mon 15-Aug-2005 15:36:19 by m2html © 2003