Changeset 89 for trunk/src/stra2num.m


Ignore:
Timestamp:
May 20, 2010, 1:48:25 AM (11 years ago)
Author:
sommeria
Message:

many bug corrections and cleaning. Activation of the BW option in uvmat. Improvement of the interaction of get_field with uvmat.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/stra2num.m

    r19 r89  
    1212
    1313function numres=stra2num(str)
    14 numres=[]; %default
     14numres=NaN; %default
    1515if double(str) >= 48 & double(str) <= 57 % = test for number strings
    16     numres=str2num(str);
     16    numres=str2double(str);
    1717elseif double(str) >= 65 & double(str) <= 90 % test on ascii code for capital letters
    1818    numres=double(str)-64; %change capital letters to corresponding number in the alphabet
Note: See TracChangeset for help on using the changeset viewer.