stra2num
PURPOSE 
'stra2num': transform letters (a, b, c) or numerical strings ('1','2'..) to the corresponding numbers
SYNOPSIS 
function numres=stra2num(str)
DESCRIPTION 
CROSS-REFERENCE INFORMATION 
This function calls:
This function is called by:
- civ 'civ': function associated with the interface 'civ.fig' for PIV, spline interpolation and stereo PIV (patch)
- civ_3D 'civ_3D': function associated with the interface 'civ_3D.fig' for PIV in volume
- name_generator 'name_generator': creates a file name from a root name and indices.
- series 'series': master function associated to the GUI series.m for analysis field series
- uvmat 'uvmat': function associated with the GUI 'uvmat.fig' for images and data field visualization
SOURCE CODE 
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013 function numres=stra2num(str)
0014 numres=[];
0015 if double(str) >= 48 & double(str) <= 57
0016 numres=str2num(str);
0017 elseif double(str) >= 65 & double(str) <= 90
0018 numres=double(str)-64;
0019 elseif double(str) >= 97 & double(str) <= 122
0020 numres=double(str)-96;
0021 end
Generated on Fri 13-Nov-2009 11:17:03 by m2html © 2003