Changeset 1058 for trunk/src/find_field_cells.m
- Timestamp:
- Sep 7, 2018, 8:51:09 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/find_field_cells.m
r1057 r1058 17 17 % _image : B/W image, (behaves like scalar) 18 18 % _vector_x,_y,_z: indices of variables giving the vector components x, y, z 19 % _warnflag: index of warnflag 19 % _warnflag: index of warnflag 20 % _histo: index of variable used as histogram 20 21 % .DimIndex 21 22 % .ProjModeRequest= 'interp_lin', 'interp_tps' indicate whether lin interpolation or derivatives (tps) is needed to calculate the requested field … … 118 119 end 119 120 ind_discrete=find(strcmp('discrete',Role)); 120 ind_coord_x= find(strcmp('coord_x',Role));121 ind_coord_x=[find(strcmp('coord_x',Role)) find(strcmp('histo',Role))]; 121 122 ind_coord_y=find(strcmp('coord_y',Role)); 122 123 ind_coord_z=find(strcmp('coord_z',Role)); 124 ind_histo=find(strcmp('histo',Role)); 123 125 ind_coord_tps=find(strcmp('coord_tps',Role)); 124 126 check_string=cellfun(@ischar,Data.VarDimName)==1; … … 477 479 Cell1DPlot{icell}.YIndex_discrete=[]; 478 480 DimCell_x=Data.VarDimName{ind_coord_x(icell)}; 479 for ivar= ind_coord_y481 for ivar=[ind_coord_y ind_histo] 480 482 DimCell=Data.VarDimName{ivar}; 481 483 if numel(DimCell_x)==1 && strcmp(DimCell_x{1},DimCell{1})
Note: See TracChangeset
for help on using the changeset viewer.