Changeset 13332


Ignore:
Timestamp:
09/11/12 15:54:01 (13 years ago)
Author:
jschierm
Message:

NEW: Python version of expread.

Location:
issm/trunk-jpl/src/m/exp
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/exp/expread.m

    r13010 r13332  
    1111%   Usage:
    1212%      Struct=expread(filename)
    13 % 
     13%
    1414%   Example:
    1515%      Struct=expread('domainoutline.exp')
     
    3333
    3434        %update number of profiles
    35    count=count+1;
     35        count=count+1;
    3636
    37    %Get file name
     37        %Get file name
    3838        A=fscanf(fid,'%s %s',2);
    3939        if ~strncmp(A,'##Name:',7), break; end
     
    5252        if ~strncmp(A,'#Points',7), break; end
    5353
    54         %Get number of nods and density
    55    A=fscanf(fid,'%f %f',[1 2]);
    56    Struct(count).nods=A(1);
    57    Struct(count).density=A(2);
     54        %Get number of nodes and density
     55        A=fscanf(fid,'%f %f',[1 2]);
     56        Struct(count).nods=A(1);
     57        Struct(count).density=A(2);
    5858
    5959        %Get Info
Note: See TracChangeset for help on using the changeset viewer.