Changeset 369


Ignore:
Timestamp:
Jan 12, 2012, 7:48:00 PM (13 years ago)
Author:
sommeria
Message:

image interpolation introduced in civ2_matlab (option decimal shift)
bug corrected in xml2struct (reading of decimal numbers fixed)

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/civ_matlab.m

    r368 r369  
    524524                yi=(1:mesh:size(image1_crop,1))';
    525525                image1_crop=interp2(image1_crop,xi,yi);
     526                xi=(1:mesh:size(image2_crop,2));
     527                yi=(1:mesh:size(image2_crop,1))';
    526528                image2_crop=interp2(image2_crop,xi,yi);
    527529            end
  • trunk/src/xml2struct.m

    r368 r369  
    2424        end
    2525    case 'char'
    26         if isempty(regexp(s,'^\d+$'))
     26       
     27        if isempty(regexp(s,'^\d+\.*\d*$'))% if the string contains numerical characters and decimal . only
    2728            out=s;
    2829        else
Note: See TracChangeset for help on using the changeset viewer.