Changeset 313 for trunk/src/plot_field.m
- Timestamp:
- Dec 1, 2011, 12:44:42 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/plot_field.m
r294 r313 524 524 else 525 525 test_vec=1; 526 eval(['vec_U=Data.' Data.ListVarName{ivar_U} ';'])527 eval(['vec_V=Data.' Data.ListVarName{ivar_V} ';'])526 vec_U=Data.(Data.ListVarName{ivar_U}); 527 vec_V=Data.(Data.ListVarName{ivar_V}); 528 528 if ~isempty(ivar_X) && ~isempty(ivar_Y)% 2D field (with unstructured coordinates or structured ones (then ivar_X and ivar_Y empty) 529 529 XName=Data.ListVarName{ivar_X}; … … 552 552 if ~isempty(ivar_F)%~(isfield(PlotParam.Vectors,'HideWarning')&& isequal(PlotParam.Vectors.HideWarning,1)) 553 553 if test_vec 554 eval(['vec_F=Data.' Data.ListVarName{ivar_F} ';'])% warning flags for dubious vectors554 vec_F=Data.(Data.ListVarName{ivar_F}); % warning flags for dubious vectors 555 555 if ~(isfield(PlotParam.Vectors,'CheckHideWarning') && isequal(PlotParam.Vectors.CheckHideWarning,1)) 556 556 test_black=1; … … 560 560 if ~isempty(ivar_FF) %&& ~test_false 561 561 if test_vec% TODO: deal with FF for structured coordinates 562 eval(['vec_FF=Data.' Data.ListVarName{ivar_FF} ';'])% flags for false vectors562 vec_FF=Data.(Data.ListVarName{ivar_FF}); % flags for false vectors 563 563 end 564 564 end
Note: See TracChangeset
for help on using the changeset viewer.