Changeset 18255
- Timestamp:
- 07/17/14 08:26:59 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/plot/plot_transient_movie.m
r14426 r18255 13 13 field=getfieldvalue(options,'transient_movie_field'); 14 14 else 15 error('specify transient_movie_field in options list'); 15 disp('List of available fields:'); 16 F=fields(md.results.TransientSolution(1)); 17 num = []; 18 for i=1:numel(F), 19 if ~strcmp(F{i},'time') & ... 20 ~strcmp(F{i},'step') & ... 21 ~strcmp(F{i},'errlog') & ... 22 ~strcmp(F{i},'outlog') & ... 23 ~strcmp(F{i},'MaxIterationConvergenceFlag') & ... 24 ~strcmp(F{i},'SolutionType'), 25 disp([' ' num2str(i) ': ' F{i} ]); 26 num = [num i]; 27 end 28 end 29 choice=input(['please enter the field number? (between ' num2str(min(num)) ' and ' num2str(max(num)) ') ']); 30 field = F{choice}; 16 31 end 17 32 … … 33 48 [data datatype]=processdata(md,results(i).(field),options); 34 49 50 clf; 35 51 titlestring=[field ' at time ' num2str(results(i).time/md.constants.yts) ' year']; 36 52 plot_unit(x,y,z,elements,data,is2d,isplanet,datatype,options) … … 49 65 end 50 66 else 51 pause(0. 1)67 pause(0.5) 52 68 end 53 69 nstep=nstep+1;
Note:
See TracChangeset
for help on using the changeset viewer.