Changeset 2265


Ignore:
Timestamp:
09/21/09 07:56:09 (15 years ago)
Author:
Mathieu Morlighem
Message:

fixed process data (not working for 2d data)

File:
1 edited

Legend:

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

    r1744 r2265  
    88
    99%check format
    10 if (iscell(data) | isempty(data) | isnan(data)),
     10if (iscell(data) | isempty(data) | length(data)==1),
    1111        error('plotmodel error message: data provided is empty');
    1212end
     
    2020%check length
    2121if datasize(1)~=md.numberofgrids & datasize(1)~=md.numberofelements & datasize(1)~=md.numberofgrids*6 & (strcmpi(md.type,'2d') | datasize(1)~=md.numberofgrids2d)
    22         error('plotmodel error message: data not supproted yet')
     22        error('plotmodel error message: data not supproted yet');
    2323end
    2424
     
    4848        data2=data(2:6:md.numberofgrids*6,:);
    4949        data=sqrt(data1.^2+data2.^2);
     50        datasize(1)=md.numberofgrids;
    5051        %---> go to grid data
    5152end
     
    5455if (strcmpi(md.type,'3d') & datasize(1)==md.numberofgrids2d),
    5556        data=project3d(md,data,'node');
     57        datasize(1)=md.numberofgrids;
    5658        %---> go to grid data
    5759end
Note: See TracChangeset for help on using the changeset viewer.