Changeset 85 for trunk/src/find_field_indices.m
- Timestamp:
- Apr 25, 2010, 9:46:07 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/find_field_indices.m
r19 r85 18 18 % .discrete: like scalar, but set of data points without continuity, represented as dots in a usual plot, instead of continuous lines otherwise 19 19 % .scalar: scalar field (default) 20 20 % 21 21 % 22 22 %INPUT: … … 72 72 testnewcell=1; 73 73 for icell_prev=1:numel(CellVarIndex)%detect whether the dimensions of ivar fit with an existing cell 74 PrevVarIndex=CellVarIndex{icell_prev}; 75 PrevDimName=Data.VarDimName{PrevVarIndex(1)}; 74 PrevVarIndex=CellVarIndex{icell_prev};%list of variable indices in cell # icell_prev 75 PrevDimName=Data.VarDimName{PrevVarIndex(1)};%list of corresponding variable names 76 76 if isequal(PrevDimName,DimCell) 77 77 CellVarIndex{icell_prev}=[CellVarIndex{icell_prev} ivar];% add variable index #ivar to the cell #icell_prev … … 154 154 end 155 155 NbDim(icell)=0;% nbre of space dimensions 156 if ~isempty(ivar_coord_z) 157 NbDim(icell)=3; 158 elseif ~isempty(ivar_coord_y) 159 NbDim(icell)=2; 160 elseif ~isempty(ivar_coord_x) 161 NbDim(icell)=1; 162 end 163 156 if numel(VarIndex)>1 157 if ~isempty(ivar_coord_z) 158 NbDim(icell)=3; 159 elseif ~isempty(ivar_coord_y) 160 NbDim(icell)=2; 161 elseif ~isempty(ivar_coord_x) 162 NbDim(icell)=1; 163 end 164 end 164 165 % look at coordinates variables 165 166 coord=zeros(1,numel(DimCell));%default
Note: See TracChangeset
for help on using the changeset viewer.