Changeset 21429
- Timestamp:
- 12/02/16 16:02:08 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/plot/plotgemb.m
r20564 r21429 20 20 deltat=results(i+1).time-time; 21 21 else 22 deltat=time-results(i-1).time; 22 deltat=time-results(i-1).time; 23 23 end 24 24 25 25 %figure out number of levels: 26 dz= flipud(results(i).SmbDz(element,:)');26 dz=results(i).SmbDz(element,:); 27 27 if numlevels==-1, 28 28 nlevels=length(dz); … … 30 30 nlevels=numlevels; 31 31 end 32 dz=dz(1:nlevels);32 dz=flipud(dz(1:nlevels)') ; 33 33 34 34 %retrieve values: … … 38 38 %build vertical values: 39 39 nz=length(dz); 40 %for j=1:nz,41 % patch([time-deltat/2 ;time+deltat/2; time+deltat/2; time-deltat/2],[z0; z0; z0+dz(j); z0+dz(j)],[T(j);T(j);T(j);T(j)]);42 % z0=z0+dz(j);43 %end44 40 45 41 xA=(time-deltat/2)*ones(nz,1); … … 53 49 zD=zeros(nz,1); 54 50 51 55 52 for j=1:nz, 56 53 zA(j)=z0; … … 59 56 zD(j)=z0+dz(j); 60 57 z0=z0+dz(j); 61 end 58 end 59 62 60 63 patch([xA,xB,xC,xD]',[zA,zB,zC,zD]',[T,T,T,T]' );61 patch([xA,xB,xC,xD]',[zA,zB,zC,zD]',[T,T,T,T]','EdgeColor','none'); 64 62 65 63 if i>=maxstep, 66 64 break; 67 65 end 68 end 66 end 67
Note:
See TracChangeset
for help on using the changeset viewer.