Changeset 189 for aedes_readjcamp.m


Ignore:
Timestamp:
Jan 24, 2012, 2:46:22 PM (7 years ago)
Author:
tjniskan
Message:
  • Fixed a small bug in reading JCAMP format files (Bruker header files).
  • Fixed contrast/brightness auto-balance for non-float image data.

M aedes.m
M aedes_readjcamp.m
M aedes_revision.m

File:
1 edited

Legend:

Unmodified
Added
Removed
  • aedes_readjcamp.m

    r173 r189  
    131131end
    132132
     133% Check if the string contains numbers at all before tryin to convert to a
     134% number. str2num uses eval command and if the string matches to a
     135% function name strange things can happen...
     136tmp2 = regexp(val,'.*\d.*');
     137if isempty(tmp2)
     138        out = val;
     139        return
     140end
     141
    133142% Convert value to numeric if possible
    134143tmp = str2num(val);
Note: See TracChangeset for help on using the changeset viewer.

Powered by Trac 1.0.9.Copyright © Juha-Pekka Niskanen 2008