Matlab Help Index Technical Documentation Index

parse_results

NAME ^

parse_results(ROIs, info) - Parses a ROIs structure and formats the data

SYNOPSIS ^

function info = parse_results(ROIs, info)

DESCRIPTION ^

 parse_results(ROIs, info) - Parses a ROIs structure and formats the data

 Usage:  global ROIs; global info; parse_results(); or
      global info; parse_results(ROIs); or
      parse_results(ROIs, info);

 view_roi_results requires a number of displays to be created on the fly,
 based on the current analysis.  parse_results does this by taking a ROIs
 structure as input, along with a pre-created info structure, and creates
 strings for display in text boxes and drop-down menus.  The pertinent 
 elements of the resulting info structure are: scan_string, results_string,
 and roi_string.

 $Id: parse_results.m,v 1.3 2003/09/23 15:38:19 nknouf Exp $

CROSS-REFERENCE INFORMATION ^

This function calls:

This function is called by:

SUBFUNCTIONS ^

SOURCE CODE ^

0001 function info = parse_results(ROIs, info)
0002 % parse_results(ROIs, info) - Parses a ROIs structure and formats the data
0003 %
0004 % Usage:  global ROIs; global info; parse_results(); or
0005 %      global info; parse_results(ROIs); or
0006 %      parse_results(ROIs, info);
0007 %
0008 % view_roi_results requires a number of displays to be created on the fly,
0009 % based on the current analysis.  parse_results does this by taking a ROIs
0010 % structure as input, along with a pre-created info structure, and creates
0011 % strings for display in text boxes and drop-down menus.  The pertinent
0012 % elements of the resulting info structure are: scan_string, results_string,
0013 % and roi_string.
0014 %
0015 % $Id: parse_results.m,v 1.3 2003/09/23 15:38:19 nknouf Exp $
0016 
0017 if (nargin == 0)
0018     global ROIs;
0019     global info;
0020 elseif (nargin == 1)
0021     global info;
0022 end
0023 
0024 %% format information string for scan data
0025 scan_string = sprintf('Functional Path: %s\n', ROIs.funcPath);
0026 scan_string = sprintf('%sNumber of Slices: %d\n', scan_string, ROIs.numSlices);
0027 scan_string = sprintf('%sNumber of Rows: %d\n', scan_string, ROIs.nrows);
0028 scan_string = sprintf('%sNumber of Columns: %d\n', scan_string, ROIs.ncols);
0029 scan_string = sprintf('%sNumber of Conditions: %d\n', scan_string, ROIs.nconditions);
0030 scan_string = sprintf('%sFunctional Stem: %s\n', scan_string, ROIs.funcStem);
0031 scan_string = sprintf('%sDesign Type: %s\n', scan_string, ROIs.designtype);
0032 scan_string = sprintf('%sTime Window: %d\n', scan_string, ROIs.timewindow);
0033 scan_string = sprintf('%sPrestim: %d\n', scan_string, ROIs.prestim);
0034 scan_string = sprintf('%sTER: %d\n', scan_string, ROIs.TER);
0035 scan_string = sprintf('%sRunlist File: %s\n', scan_string, ROIs.runlistfile);
0036 
0037 %% format information string for ROI data
0038 roi_string = sprintf('ROI Name: %s\n', ROIs.roi);
0039 roi_string = sprintf('%sNumber of Runs: %d\n', roi_string, size(ROIs.runlist, 2));
0040 roi_string = sprintf('%sNumber of Voxels: %d\n', roi_string, ROIs.numVoxels);
0041 
0042 %% format information string for results options
0043 results_string = {};
0044 if (findstr(ROIs.designtype, 'event'))
0045     results_string = {'Results...'};
0046     results_string = {results_string{:} 'ROI Mean (no errors)'};
0047     results_string = {results_string{:} 'ROI Mean (standard deviation)'};
0048     results_string = {results_string{:} 'ROI Mean (standard error)'};
0049     results_string = {results_string{:} 'ROI Percent Signal Change (no errors)'};
0050     results_string = {results_string{:} 'ROI Percent Signal Change (stanard deviation)'};
0051     results_string = {results_string{:} 'ROI Percent Signal Change (stanard error)'};
0052 elseif (ROIs.designtype == 'blocked')
0053     results_string = {'Results...'};
0054     results_string = {results_string{:} 'ROI Mean Time Course Graphs'};
0055         results_string = {results_string{:} 'ROI Mean (no errors)'};
0056         results_string = {results_string{:} 'ROI Mean (standard deviation)'};
0057         results_string = {results_string{:} 'ROI Mean (standard error)'};
0058         results_string = {results_string{:} 'ROI Percent Signal Change (no errors)'};
0059         results_string = {results_string{:} 'ROI Percent Signal Change (stanard deviation)'};
0060         results_string = {results_string{:} 'ROI Percent Signal Change (stanard error)'};
0061 
0062 end
0063 
0064 info.scan_string = scan_string;
0065 info.roi_string = roi_string;
0066 info.results_string = results_string;
0067 info.designtype = ROIs.designtype;
0068 
0069 return;

Generated at 19:47:41 15-Oct-2003 by m2html © 2003