Changeset 258
- Timestamp:
- Jun 1, 2011, 11:18:33 AM (13 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/proj_field.m
r248 r258 176 176 177 177 % idimvar=0; 178 [CellVarIndex,NbDim ,VarTypeCell,errormsg]=find_field_indices(FieldData);178 [CellVarIndex,NbDimCell,VarTypeCell,errormsg]=find_field_indices(FieldData) 179 179 if ~isempty(errormsg) 180 180 errormsg=['error in proj_field/proj_points:' errormsg]; … … 186 186 % icoord=0; 187 187 for icell=1:length(CellVarIndex) 188 if NbDim (icell)==1188 if NbDimCell(icell)==1 189 189 continue 190 190 end -
trunk/src/uvmat.m
r252 r258 2837 2837 end 2838 2838 end 2839 if ~isequal(numel(abstime),1) 2840 abstime=[]; 2841 end 2842 if ~isequal(numel(abstime_1),1) 2843 abstime_1=[]; 2844 end 2839 2845 set(handles.abs_time,'String',num2str(abstime,4)) 2840 2846 set(handles.abs_time_1,'String',num2str(abstime_1,4)) … … 3997 4003 else 3998 4004 Histo.ListVarName={FieldName,'histo'}; 3999 if is equal(Field.NbDim,3)4005 if isfield(Field,'NbDim') && isequal(Field.NbDim,3) 4000 4006 Histo.VarDimName={FieldName,FieldName}; %dimensions for the histogram 4001 4007 else … … 4020 4026 end 4021 4027 eval(['Histo.' FieldName '=linspace(Amin,Amax,50);'])%absissa values for histo 4022 if is equal(Field.NbDim,3)4028 if isfield(Field,'NbDim') && isequal(Field.NbDim,3) 4023 4029 C=reshape(double(FieldHisto),1,[]);% reshape in a vector 4024 4030 eval(['Histo.histo(:,1)=hist(C, Histo.' FieldName ');']); %calculate histogram
Note: See TracChangeset
for help on using the changeset viewer.