Changeset 742
- Timestamp:
- 06/03/09 10:03:22 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/classes/public/plot/plot_tensor.m
r1 r742 15 15 16 16 %Figure out tensor type: 17 if str cmpi(type(1:6),'strain'),17 if strncmpi(type,'strain',6), 18 18 tensor=md.strainrate; 19 elseif str cmpi(type(1:6),'stress'),19 elseif strncmpi(type,'stress',6), 20 20 tensor=md.stress; 21 elseif str cmpi(type(1:16),'deviatoricstress'),21 elseif strncmpi(type,'deviatoricstress',16), 22 22 tensor=md.deviatoricstress; 23 23 else … … 26 26 27 27 %Figure out type of plot being requested 28 if str cmpi(type(end-5:end),'tensor') | strcmpi(type,'strainrate') | strcmpi(type,'deviatoricstress') | strcmpi(type,'stress'),28 if strncmpi(fliplr(type),fliplr('tensor'),6) | strcmpi(type,'strainrate') | strcmpi(type,'deviatoricstress') | strcmpi(type,'stress'), 29 29 plot_tensor_components(md,options_structure,width,i,tensor,type,plot_options); 30 30 return; 31 elseif str cmpi(type(end-8:end),'principal'),31 elseif strncmpi(fliplr(type),fliplr('principal'),9), 32 32 plot_tensor_principal(md,options_structure,width,i,tensor,type,plot_options); 33 33 return; 34 elseif str cmpi(type(end-13:end-1),'principalaxis'),34 elseif strncmpi(fliplr(type(1:end-1)),fliplr('principalaxis'),13), 35 35 plot_tensor_principalaxis(md,options_structure,width,i,tensor,type,plot_options); 36 36 return;
Note:
See TracChangeset
for help on using the changeset viewer.