Changeset 2747


Ignore:
Timestamp:
01/04/10 14:36:04 (15 years ago)
Author:
Eric.Larour
Message:

Allowed already read profile as input

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/classes/public/SectionValues.m

    r2296 r2747  
    77%   Usage:
    88%      [elements,x,y,z,s,data]=SectionValues(md,data,filename,resolution)
     9%      [elements,x,y,z,s,data]=SectionValues(md,data,profile_structure,resolution)
    910
    10 %read infile:
    11 contempt=expread(infile,1);
    12 nods=contempt.nods;
    13 x=contempt.x;
    14 y=contempt.y;
     11%check what we have for profile as input
     12if ischar(infile),
     13        %read infile:
     14        contempt=expread(infile,1);
     15        nods=contempt.nods;
     16        x=contempt.x;
     17        y=contempt.y;
     18else
     19        %read infile:
     20        nods=infile.nods;
     21        x=infile.x;
     22        y=infile.y;
     23end
     24
    1525
    1626%get the specified resolution
Note: See TracChangeset for help on using the changeset viewer.