Home > database > get_an_names.m

get_an_names

PURPOSE ^

Returns list of analysis names in an an{na} array

SYNOPSIS ^

function names = get_an_names(an,verbose)

DESCRIPTION ^

 Returns list of analysis names in an an{na} array

 names = get_an_names(an,verbose);

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function names = get_an_names(an,verbose)
0002 % Returns list of analysis names in an an{na} array
0003 %
0004 % names = get_an_names(an,verbose);
0005 
0006 % January 5, 2011 PJ
0007 % 05Mar2014 PJ - added verbosity option
0008 
0009 if nargin < 1
0010   fprintf('Need to pass in an analysis stack\n')
0011   return
0012 end
0013 
0014 if nargin < 2
0015   verbose = true;
0016 end
0017 
0018 na = length(an);
0019 names = cell(na,1);
0020 for ia = 1:na
0021     names{ia} = an{ia}.name;
0022   if verbose || nargout < 1
0023     fprintf('%d: %s\n', ia, names{ia});
0024   end
0025 end
0026 
0027 return

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