Home > fmri > utils > GE2SPM > GE_dumpExamHeader.m

GE_dumpExamHeader

PURPOSE ^

SYNOPSIS ^

function outstr = GE_dumpExamHeader(exam)

DESCRIPTION ^

 outstr = GE_dumpExamHeader(exam)

 Writes the exam header to the string outstr 

 Souheil J. Inati
 Dartmouth College
 May 2000
 souheil.inati@dartmouth.edu

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function outstr = GE_dumpExamHeader(exam)
0002 %
0003 % outstr = GE_dumpExamHeader(exam)
0004 %
0005 % Writes the exam header to the string outstr
0006 %
0007 % Souheil J. Inati
0008 % Dartmouth College
0009 % May 2000
0010 % souheil.inati@dartmouth.edu
0011 %
0012 
0013 outstr = sprintf('ex_suid: %s\n'     , char(exam.ex_suid));
0014 outstr = strcat(outstr, sprintf('ex_uniq: %d\n'     , exam.ex_uniq));
0015 outstr = strcat(outstr, sprintf('ex_diskid: %s\n'   , char(exam.ex_diskid)));
0016 outstr = strcat(outstr, sprintf('ex_no: %d\n'       , exam.ex_no));
0017 outstr = strcat(outstr, sprintf('hospname: %s\n'    , cstring(exam.hospname)));
0018 outstr = strcat(outstr, sprintf('detect: %d\n'      , exam.detect));
0019 outstr = strcat(outstr, sprintf('numcells: %d\n'    , exam.numcells));
0020 outstr = strcat(outstr, sprintf('zerocell: %f\n'    , exam.zerocell));
0021 outstr = strcat(outstr, sprintf('cellspace: %f\n'   , exam.cellspace));
0022 outstr = strcat(outstr, sprintf('srctodet: %f\n'    , exam.srctodet));
0023 outstr = strcat(outstr, sprintf('srctoiso: %f\n'    , exam.srctoiso));
0024 outstr = strcat(outstr, sprintf('tubetyp: %d\n'     , exam.tubetyp));
0025 outstr = strcat(outstr, sprintf('dastyp: %d\n'      , exam.dastyp));
0026 outstr = strcat(outstr, sprintf('num_dcnk: %d\n'    , exam.num_dcnk));
0027 outstr = strcat(outstr, sprintf('dcn_len: %d\n'     , exam.dcn_len));
0028 outstr = strcat(outstr, sprintf('dcn_density: %d\n' , exam.dcn_density));
0029 outstr = strcat(outstr, sprintf('dcn_stepsize: %d\n', exam.dcn_stepsize));
0030 outstr = strcat(outstr, sprintf('dcn_shiftcnt: %d\n', exam.dcn_shiftcnt));
0031 outstr = strcat(outstr, sprintf('magstrength: %d\n' , exam.magstrength));
0032 outstr = strcat(outstr, sprintf('patid: %s\n'       , cstring(exam.patid)));
0033 outstr = strcat(outstr, sprintf('patname: %s\n'     , cstring(exam.patname)));
0034 outstr = strcat(outstr, sprintf('patage: %d\n'      , exam.patage));
0035 outstr = strcat(outstr, sprintf('patian: %d\n'      , exam.patian));
0036 outstr = strcat(outstr, sprintf('patsex: %d\n'      , exam.patsex));
0037 outstr = strcat(outstr, sprintf('patweight: %d\n'   , exam.patweight));
0038 outstr = strcat(outstr, sprintf('trauma: %d\n'      , exam.trauma));
0039 outstr = strcat(outstr, sprintf('hist: %s\n'        , cstring(exam.hist)));
0040 outstr = strcat(outstr, sprintf('reqnum: %s\n'      , cstring(exam.reqnum)));
0041 outstr = strcat(outstr, sprintf('ex_datetime: %d\n' , exam.ex_datetime));
0042 outstr = strcat(outstr, sprintf('refphy: %s\n'      , cstring(exam.refphy)));
0043 outstr = strcat(outstr, sprintf('diagrad: %s\n'     , cstring(exam.diagrad)));
0044 outstr = strcat(outstr, sprintf('op: %s\n'          , cstring(exam.op)));
0045 outstr = strcat(outstr, sprintf('ex_desc: %s\n'     , cstring(exam.ex_desc)));
0046 outstr = strcat(outstr, sprintf('ex_typ: %s\n'      , cstring(exam.ex_typ)));
0047 outstr = strcat(outstr, sprintf('ex_format: %d\n'   , exam.ex_format));
0048 outstr = strcat(outstr, sprintf('firstaxtime: %f\n' , exam.firstaxtime));
0049 outstr = strcat(outstr, sprintf('ex_sysid: %s\n'    , sprintf('%s',exam.ex_sysid)));
0050 outstr = strcat(outstr, sprintf('ex_lastmod: %d\n'  , exam.ex_lastmod));
0051 outstr = strcat(outstr, sprintf('protocolflag: %d\n', exam.protocolflag));
0052 outstr = strcat(outstr, sprintf('ex_alloc_key: %s\n', sprintf('%s',exam.ex_alloc_key)));
0053 outstr = strcat(outstr, sprintf('ex_delta_cnt: %d\n', exam.ex_delta_cnt));
0054 outstr = strcat(outstr, sprintf('ex_verscre: %s\n'  , char(exam.ex_verscre)));
0055 outstr = strcat(outstr, sprintf('ex_verscur: %s\n'  , char(exam.ex_verscur)));
0056 outstr = strcat(outstr, sprintf('ex_checksum: %d\n' , exam.ex_checksum));
0057 outstr = strcat(outstr, sprintf('ex_complete: %d\n' , exam.ex_complete));
0058 outstr = strcat(outstr, sprintf('ex_seriesct: %d\n' , exam.ex_seriesct));
0059 outstr = strcat(outstr, sprintf('ex_numarch: %d\n'  , exam.ex_numarch));
0060 outstr = strcat(outstr, sprintf('ex_numseries: %d\n', exam.ex_numseries));
0061 outstr = strcat(outstr, sprintf('ex_series.length: %d\n'   , exam.ex_series.length));
0062 outstr = strcat(outstr, sprintf('ex_series.data: %d\n'   , exam.ex_series.data));
0063 outstr = strcat(outstr, sprintf('ex_numunser: %d\n' , exam.ex_numunser));
0064 outstr = strcat(outstr, sprintf('ex_unseries.length: %d\n' , exam.ex_unseries.length));
0065 outstr = strcat(outstr, sprintf('ex_unseries.data: %d\n' , exam.ex_unseries.data));
0066 outstr = strcat(outstr, sprintf('ex_toarchcnt: %d\n', exam.ex_toarchcnt));
0067 outstr = strcat(outstr, sprintf('ex_toarchive.length: %d\n', exam.ex_toarchive.length));
0068 outstr = strcat(outstr, sprintf('ex_toarchive.data: %d\n', exam.ex_toarchive.data));
0069 outstr = strcat(outstr, sprintf('ex_prospcnt: %d\n' , exam.ex_prospcnt));
0070 outstr = strcat(outstr, sprintf('ex_prosp.length: %d\n'    , exam.ex_prosp.length));
0071 outstr = strcat(outstr, sprintf('ex_prosp.data: %d\n'    , exam.ex_prosp.data));
0072 outstr = strcat(outstr, sprintf('ex_modelnum: %d\n' , exam.ex_modelnum));
0073 outstr = strcat(outstr, sprintf('ex_modelcnt: %d\n' , exam.ex_modelcnt));
0074 outstr = strcat(outstr, sprintf('ex_models.length: %d\n'   , exam.ex_models.length));
0075 outstr = strcat(outstr, sprintf('ex_models.data: %d\n'   , exam.ex_models.data));
0076 outstr = strcat(outstr, sprintf('ex_stat: %d\n'     , exam.ex_stat));
0077 outstr = strcat(outstr, sprintf('uniq_sys_id: %s\n' , sprintf('%s',exam.uniq_sys_id)));
0078 outstr = strcat(outstr, sprintf('service_id: %s\n'  , sprintf('%s',exam.service_id)));
0079 outstr = strcat(outstr, sprintf('mobile_loc: %s\n'  , sprintf('%s',exam.mobile_loc)));
0080 outstr = strcat(outstr, sprintf('study_uid: %s\n'   , sprintf('%s',exam.study_uid)));
0081 outstr = strcat(outstr, sprintf('study_status: %d\n', exam.study_status));
0082 outstr = strcat(outstr, sprintf('ex_padding: %s\n' , cstring(exam.ex_padding)));
0083 
0084 return

Generated on Wed 20-Sep-2023 04:00:50 by m2html © 2003