- Timestamp:
- Sep 17, 2012, 10:47:38 PM (12 years ago)
- Location:
- trunk/src
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/calc_field.m
r517 r546 1 2 3 1 %'calc_field': defines fields (velocity, vort, div...) from civx data and calculate them 4 2 %--------------------------------------------------------------------- -
trunk/src/calc_tps.m
r530 r546 1 %'calc_tps': calculate the thin plate spline (tps) coefficients for interpolation 2 %--------------------------------------------------------------------- 3 % DataOut=calc_tps(DataIn,checkall) 4 % 5 % OUTPUT: 6 % DataOut: output field structure 7 % 8 % INPUT: 9 % DataIn: intput field structure 10 % checkall:=1 if tps is needed for all fields (a filter projection is needed), =0 otherwise 11 1 12 function DataOut=calc_tps(DataIn,checkall) 2 13 DataOut=DataIn;%default … … 5 16 SubDomain=DataIn.SubDomain;% 6 17 end 7 %[CellVarIndex,NbDimVec,VarTypeCell,errormsg]=find_field_cells(DataIn);8 18 [CellInfo,NbDimArray,errormsg]=find_field_cells(DataIn); 9 19 nbtps=0; 10 20 for icell=1:numel(CellInfo); 11 %VarType=VarTypeCell{icell};12 21 if NbDimArray(icell)>=2 && strcmp(CellInfo{icell}.CoordType,'scattered')%'&& ~isempty(VarType.coord_x) 13 22 nbtps=nbtps+1; -
trunk/src/find_field_cells.m
r543 r546 159 159 icell=numel(CellInfo)+icell_tps; % new field cell index 160 160 CellInfo{icell}.CoordIndex=ivar_tps(icell_tps);% index of the tps coordinate variable 161 CellInfo{icell}.VarIndex_subrange_tps=[];162 CellInfo{icell}.VarIndex_nbsites_tps=[];161 %CellInfo{icell}.VarIndex_subrange_tps=[]; 162 %CellInfo{icell}.VarIndex_nbsites_tps=[]; 163 163 if numel(DimCell)==3 164 164 VarDimName=Data.VarDimName(~check_select); -
trunk/src/plot_field.m
r537 r546 76 76 % .Vectors.MaxC = imposed maximum of the scalar field used for vector color; 77 77 % 78 % PosColorbar: if not empty, display a colorbar for B&W images 79 % imposed position of the colorbar (ex [0.821 0.471 0.019 0.445]) 78 % PosColorbar: % if absent, no action on colorbar 79 % % if empty, suppress any existing colorbar 80 % % if not empty, display a colorbar for B&W images at position PosColorbar 81 % expressed in figure relative unit (ex [0.821 0.471 0.019 0.445]) 80 82 81 83 %AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA … … 99 101 %% default input and output 100 102 if ~exist('PlotParam','var'),PlotParam=[];end; 101 if ~exist('PosColorbar','var'),PosColorbar=[];end;102 103 PlotType='text'; %default 103 104 PlotParamOut=PlotParam;%default … … 110 111 index_1D=[]; 111 112 index_0D=[]; 112 % errormsg=check_field_structure(Data);113 % if ~isempty(errormsg)114 % msgbox_uvmat('ERROR',['input of plot_field/check_field_structure: ' errormsg])115 % display(['input of plot_field/check_field_structure: ' errormsg])116 % return117 % end118 113 % check the cells of fields : 119 114 [CellInfo,NbDimArray,errormsg]=find_field_cells(Data); … … 126 121 index_3D=find(NbDimArray>2,1); 127 122 if ~isempty(index_3D) 128 % if isfield(Data,'NbDimArray')&& isequal(Data.NbDimArray,2) 129 % index_2D=[index_2D index_3D]; 130 % else 131 msgbox_uvmat('ERROR','volume plot not implemented yet'); 132 return 133 % end 123 msgbox_uvmat('ERROR','volume plot not implemented yet'); 124 return 134 125 end 135 126 index_2D=find(NbDimArray==2);%find 2D fields 136 127 index_1D=find(NbDimArray==1); 137 128 index_0D=find(NbDimArray==0); 138 %remove coordinates variables from 1D plot139 % if ~isempty(index_2D)140 % for ivar=1:length(index_1D)141 % if isequal(CellVarIndex{index_1D(ivar)},VarRole{index_1D(ivar)}.coord)142 % index_1D(ivar)=0;143 % end144 % end145 % index_1D=index_1D(index_1D>0);146 % end147 129 148 130 %% test axes and figure … … 194 176 %% 2D plots 195 177 if isempty(index_2D) 196 plot_plane([],[],haxes );%removes images or vector plots in the absence of 2D field plot178 plot_plane([],[],haxes,[],[]);%removes images or vector plots in the absence of 2D field plot 197 179 else %plot 2D field 180 if ~exist('PosColorbar','var'),PosColorbar=[];end; 198 181 [tild,PlotParamOut,PlotType,errormsg]=plot_plane(Data,CellInfo(index_2D),haxes,PlotParam,PosColorbar); 199 182 AxeData.NbDim=2; … … 539 522 %default plotting parameters 540 523 PlotType='plane';%default 541 if ~exist('PlotParam','var')542 PlotParam=[];543 end524 % if ~exist('PlotParam','var') 525 % PlotParam=[]; 526 % end 544 527 545 528 if ~isfield(PlotParam,'Scalar') … … 936 919 set(hima,'YData',AY); 937 920 end 938 921 939 922 % set the transparency to 0.5 if vectors are also plotted 940 923 if isfield(PlotParam.Scalar,'Opacity')&& ~isempty(PlotParam.Scalar.Opacity) … … 952 935 953 936 %display the colorbar code for B/W images if Poscolorbar not empty 954 if siz==2 && exist('PosColorbar','var')&& ~isempty(PosColorbar) 955 if isempty(hcol)||~ishandle(hcol) 956 hcol=colorbar;%create new colorbar 957 end 958 if length(PosColorbar)==4 959 set(hcol,'Position',PosColorbar) 960 end 961 %YTick=0;%default 962 if MaxA>MinA 963 if CheckContour 964 colbarlim=get(hcol,'YLim'); 965 scale_bar=(colbarlim(2)-colbarlim(1))/(abscontmax-abscontmin); 966 YTick=cont_pos(2:end-1); 967 YTick_scaled=colbarlim(1)+scale_bar*(YTick-abscontmin); 968 set(hcol,'YTick',YTick_scaled); 969 elseif (isfield(PlotParam.Scalar,'CheckBW') && isequal(PlotParam.Scalar.CheckBW,1))||isa(A,'uint8')|| isa(A,'uint16')%images 970 hi=get(hcol,'children'); 971 if iscell(hi)%multiple images in colorbar 972 hi=hi{1}; 973 end 974 set(hi,'YData',[MinA MaxA]) 975 set(hi,'CData',(1:256)') 976 set(hcol,'YLim',[MinA MaxA]) 977 YTick=colbartick(MinA,MaxA); 978 set(hcol,'YTick',YTick) 979 else 980 hi=get(hcol,'children'); 981 if iscell(hi)%multiple images in colorbar 982 hi=hi{1}; 983 end 984 set(hi,'YData',[MinA MaxA]) 985 set(hi,'CData',(1:64)') 986 YTick=colbartick(MinA,MaxA); 987 set(hcol,'YLim',[MinA MaxA]) 988 set(hcol,'YTick',YTick) 989 end 990 set(hcol,'Yticklabel',num2str(YTick')); 991 end 992 elseif ishandle(hcol) 993 delete(hcol); %erase existing colorbar if not needed 937 if ~isempty(PosColorbar) 938 if siz==2 && exist('PosColorbar','var') 939 if isempty(hcol)||~ishandle(hcol) 940 hcol=colorbar;%create new colorbar 941 end 942 if length(PosColorbar)==4 943 set(hcol,'Position',PosColorbar) 944 end 945 %YTick=0;%default 946 if MaxA>MinA 947 if CheckContour 948 colbarlim=get(hcol,'YLim'); 949 scale_bar=(colbarlim(2)-colbarlim(1))/(abscontmax-abscontmin); 950 YTick=cont_pos(2:end-1); 951 YTick_scaled=colbarlim(1)+scale_bar*(YTick-abscontmin); 952 set(hcol,'YTick',YTick_scaled); 953 elseif (isfield(PlotParam.Scalar,'CheckBW') && isequal(PlotParam.Scalar.CheckBW,1))||isa(A,'uint8')|| isa(A,'uint16')%images 954 hi=get(hcol,'children'); 955 if iscell(hi)%multiple images in colorbar 956 hi=hi{1}; 957 end 958 set(hi,'YData',[MinA MaxA]) 959 set(hi,'CData',(1:256)') 960 set(hcol,'YLim',[MinA MaxA]) 961 YTick=colbartick(MinA,MaxA); 962 set(hcol,'YTick',YTick) 963 else 964 hi=get(hcol,'children'); 965 if iscell(hi)%multiple images in colorbar 966 hi=hi{1}; 967 end 968 set(hi,'YData',[MinA MaxA]) 969 set(hi,'CData',(1:64)') 970 YTick=colbartick(MinA,MaxA); 971 set(hcol,'YLim',[MinA MaxA]) 972 set(hcol,'YTick',YTick) 973 end 974 set(hcol,'Yticklabel',num2str(YTick')); 975 end 976 elseif ishandle(hcol) 977 delete(hcol); %erase existing colorbar if not needed 978 end 994 979 end 995 980 else%no scalar plot … … 997 982 delete(hima) 998 983 end 999 if ~isempty( hcol)&& ishandle(hcol)984 if ~isempty(PosColorbar) && ~isempty(hcol)&& ishandle(hcol) 1000 985 delete(hcol) 1001 986 end … … 1100 1085 PlotParamOut=rmfield(PlotParamOut,'Vectors'); 1101 1086 end 1102 1103 %listfields={'AY','AX','A','X','Y','U','V','C','W','F','FF'}; 1104 %listdim={'AY','AX',{'AY','AX'},'nb_vectors','nb_vectors','nb_vectors','nb_vectors','nb_vectors','nb_vectors','nb_vectors','nb_vectors'}; 1105 %Role={'coord_y','coord_x','scalar','coord_x','coord_y','vector_x','vector_y','scalar','vector_z','warnflag','errorflag'}; 1106 %ind_select=[]; 1107 nbvar=0; 1087 % nbvar=0; 1108 1088 1109 1089 %store the coordinate extrema occupied by the field … … 1140 1120 end 1141 1121 end 1142 % PlotParamOut.RangeX=[XMin XMax]; %range of x, to be stored in the user data of the plot axes 1143 % PlotParamOut.RangeY=[YMin YMax]; %range of x, to be stored in the user data of the plot axes 1144 % if ~fix_lim 1145 PlotParamOut.Coordinates.MinX=XMin; 1146 PlotParamOut.Coordinates.MaxX=XMax; 1147 PlotParamOut.Coordinates.MinY=YMin; 1148 PlotParamOut.Coordinates.MaxY=YMax; 1149 if XMax>XMin 1150 set(haxes,'XLim',[XMin XMax]);% set x limits of frame in axes coordinates 1151 end 1152 if YMax>YMin 1153 set(haxes,'YLim',[YMin YMax]);% set x limits of frame in axes coordinates 1154 end 1155 % end 1122 PlotParamOut.Coordinates.MinX=XMin; 1123 PlotParamOut.Coordinates.MaxX=XMax; 1124 PlotParamOut.Coordinates.MinY=YMin; 1125 PlotParamOut.Coordinates.MaxY=YMax; 1126 if XMax>XMin 1127 set(haxes,'XLim',[XMin XMax]);% set x limits of frame in axes coordinates 1128 end 1129 if YMax>YMin 1130 set(haxes,'YLim',[YMin YMax]);% set x limits of frame in axes coordinates 1131 end 1156 1132 set(haxes,'YDir','normal') 1157 1133 set(get(haxes,'XLabel'),'String',[XName ' (' x_units ')']); … … 1160 1136 PlotParamOut.Coordinates.y_units=y_units; 1161 1137 end 1162 1163 1164 1165 1166 1167 1168 1169 1138 if isfield(PlotParam,'Coordinates') && isfield(PlotParam.Coordinates,'CheckFixAspectRatio') && isequal(PlotParam.Coordinates.CheckFixAspectRatio,1) 1139 set(haxes,'DataAspectRatioMode','manual') 1140 if isfield(PlotParam.Coordinates,'AspectRatio') 1141 set(haxes,'DataAspectRatio',[PlotParam.Coordinates.AspectRatio 1 1]) 1142 end 1143 else 1144 set(haxes,'DataAspectRatioMode','auto') 1145 end 1170 1146 %------------------------------------------------------------------- 1171 1147 % --- function for plotting vectors -
trunk/src/proj_field.m
r542 r546 149 149 ProjData.NbDim=0; 150 150 [CellInfo,NbDimArray,errormsg]=find_field_cells(FieldData); 151 %[CellVarIndex,NbDimCell,VarTypeCell,errormsg]=find_field_cells(FieldData);152 151 if ~isempty(errormsg) 153 152 errormsg=['error in proj_field/proj_points:' errormsg]; … … 160 159 end 161 160 VarIndex=CellInfo{icell}.VarIndex;% indices of the selected variables in the list FieldData.ListVarName 162 % VarType=CellInfo{icell}.VarType;% structure defining the types of variables in the cell163 161 ivar_X=CellInfo{icell}.CoordIndex(end); 164 162 ivar_Y=CellInfo{icell}.CoordIndex(end-1); … … 167 165 ivar_Z=CellInfo{icell}.CoordIndex(1); 168 166 end 169 % ivar_rem=[];170 % if isfield(CellInfo{icell},'VarIndex_ancillary')171 % ivar_rem=CellInfo{icell}.VarIndex_ancillary;172 % end173 % if isfield(CellInfo{icell},'VarIndex_warnflag')174 % ivar_rem=[ivar_rem CellInfo{icell}.VarIndex_warnflag];175 % end176 167 ivar_FF=[]; 177 168 if isfield(CellInfo{icell},'VarIndex_errorflag') … … 181 172 return 182 173 end 183 end 184 % 174 end 185 175 % select types of variables to be projected 186 176 ListProj={'VarIndex_scalar','VarIndex_image','VarIndex_color','VarIndex_vector_x','VarIndex_vector_y'}; … … 550 540 551 541 %% group the variables (fields of 'FieldData') in cells of variables with the same dimensions 552 %[CellVarIndex,NbDim,VarTypeCell,errormsg]=find_field_cells(FieldData);553 542 [CellInfo,NbDim,errormsg]=find_field_cells(FieldData); 554 543 if ~isempty(errormsg) … … 561 550 ProjData.VarDimName={}; 562 551 for icell=1:length(CellInfo) 563 %VarIndex=CellInfo{icell}.VarIndex;% indices of the selected variables in the list FieldData.ListVarName564 % VarType=VarTypeCell{icell}; %types of variables565 552 if NbDim(icell)~=2% proj_line acts only on fields of space dimension 2, TODO: check 3D case 566 553 continue … … 722 709 else 723 710 test_Amat=1;%image or 2D matrix 724 test_interp2=0;%default 725 % if ~isempty(VarType.coord_y) 711 test_interp2=0;%default 726 712 AYName=FieldData.ListVarName{CellInfo{icell}.CoordIndex(end-1)}; 727 713 AXName=FieldData.ListVarName{CellInfo{icell}.CoordIndex(end)}; … … 985 971 986 972 %% group the variables (fields of 'FieldData') in cells of variables with the same dimensions 987 % CellVarIndex=cells of variable index arrays988 %[CellVarIndex,NbDimVec,VarTypeCell,errormsg]=find_field_cells(FieldData);989 973 [CellInfo,NbDimArray,errormsg]=find_field_cells(FieldData); 990 974 if ~isempty(errormsg) … … 1043 1027 ivar_V=CellInfo{icell}.VarIndex_vector_y; 1044 1028 end 1045 % if ~isempty(VarType.vector_x_tps)&&~isempty(VarType.vector_y_tps)1046 % ivar_U=VarType.vector_x_tps;1047 % ivar_V=VarType.vector_y_tps;1048 % end1049 1029 if isfield(CellInfo{icell},'VarIndex_vector_z') 1050 ivar_W=CellInfo{icell}.VarIndex_vector_z; 1051 end 1052 % %type of coordinates 1053 % if ~isempty(VarType.coord_x) && ~isempty(VarType.coord_y) 1054 % CoordType='unstructured'; 1055 % elseif ~isempty(VarType.coord_tps) 1056 % CoordType='tps'; 1057 % else 1058 % CoordType='structured'; 1059 % end 1060 % 1030 ivar_W=CellInfo{icell}.VarIndex_vector_z; 1031 end 1061 1032 %dimensions 1062 1033 DimCell=FieldData.VarDimName{VarIndex(1)}; … … 1203 1174 if isfield(CellInfo{icell},'VarIndex_scalar') 1204 1175 VarName_scalar=FieldData.ListVarName{CellInfo{icell}.VarIndex_scalar}; 1205 if ~isempty(VarType.errorflag)1176 if isfield(CellInfo{icell},'errorflag') && ~isempty(CellInfo{icell}.errorflag) 1206 1177 FieldData.(VarName_scalar)=FieldData.(VarName_scalar)(indsel); 1207 1178 end … … 1236 1207 case 'tps' 1237 1208 if strcmp(ProjMode{icell},'filter') 1238 Coord=FieldData.(FieldData.ListVarName{ VarType.coord_tps});1239 NbSites=FieldData.(FieldData.ListVarName{ VarType.nbsites_tps});1240 SubRange=FieldData.(FieldData.ListVarName{ VarType.subrange_tps});1241 if isfield( VarType,'vector_x_tps')&&isfield(VarType,'vector_y_tps')1242 FieldVar=cat(3,FieldData.(FieldData.ListVarName{ VarType.vector_x_tps}),FieldData.(FieldData.ListVarName{VarType.vector_y_tps}));1209 Coord=FieldData.(FieldData.ListVarName{CellInfo{icell}.CoordIndex}); 1210 NbSites=FieldData.(FieldData.ListVarName{CellInfo{icell}.NbSite_tps}); 1211 SubRange=FieldData.(FieldData.ListVarName{CellInfo{icell}.SubRange_tps}); 1212 if isfield(CellInfo{icell},'VarIndex_vector_x_tps')&&isfield(CellInfo{icell},'VarIndex_vector_y_tps') 1213 FieldVar=cat(3,FieldData.(FieldData.ListVarName{CellInfo{icell}.VarIndex_vector_x_tps}),FieldData.(FieldData.ListVarName{CellInfo{icell}.VarIndex_vector_y_tps})); 1243 1214 end 1244 1215 coord_x_proj=XMin:DX:XMax; … … 1249 1220 XI=XI+ObjectData.Coord(1,1); 1250 1221 YI=YI+ObjectData.Coord(1,2); 1251 [DataOut,VarAttribute,errormsg]=calc_field_tps(Coord,NbSites,SubRange,FieldVar, VarType.Operation,cat(3,XI,YI));1222 [DataOut,VarAttribute,errormsg]=calc_field_tps(Coord,NbSites,SubRange,FieldVar,CellInfo{icell}.Operation,cat(3,XI,YI)); 1252 1223 ListFieldProj=(fieldnames(DataOut))'; 1253 1224 VarDimName=cell(size(ListFieldProj)); … … 1509 1480 end 1510 1481 %filter the field (image) if option 'filter' is used 1511 if test_filter1512 Aclass=class(FieldData.A);1513 eval(['ProjData.' VarName '=filter2(Mfilter,FieldData.' VarName ',''valid'');'])1514 if ~isequal(Aclass,'double')1515 eval(['ProjData.' VarName '=' Aclass '(FieldData.' VarName ');'])%revert to integer values1516 end1517 end1482 % if test_filter 1483 % Aclass=class(FieldData.A); 1484 % eval(['ProjData.' VarName '=filter2(Mfilter,FieldData.' VarName ',''valid'');']) 1485 % if ~isequal(Aclass,'double') 1486 % eval(['ProjData.' VarName '=' Aclass '(FieldData.' VarName ');'])%revert to integer values 1487 % end 1488 % end 1518 1489 eval(['vec_A=reshape(FieldData.' VarName ',[],nbcolor);'])%put the original image in line 1519 1490 %ind_in=find(flagin); … … 1702 1673 %----------------------------------------------------------------- 1703 1674 idimvar=0; 1704 % [CellVarIndex,NbDimVec,VarTypeCell,errormsg]=find_field_cells(FieldData);1705 % if ~isempty(errormsg)1706 % errormsg=['error in proj_field/proj_plane:' errormsg];1707 % return1708 % end1709 1710 1675 % LOOP ON GROUPS OF VARIABLES SHARING THE SAME DIMENSIONS 1711 1676 % CellVarIndex=cells of variable index arrays -
trunk/src/set_object.m
r533 r546 487 487 % create tps coeff if needed for ProjMode 'filter' 488 488 if strcmp(ObjectData.ProjMode,'filter')&&~isfield(UvData.Field,'Coord_tps') 489 UvData.Field=calc_tps(UvData.Field );489 UvData.Field=calc_tps(UvData.Field,1); 490 490 end 491 491 [ProjData,errormsg]= proj_field(UvData.Field,ObjectData);%project the current field of uvmat on ObjectData -
trunk/src/uvmat.m
r542 r546 178 178 set(hObject,'Units','Normalized') 179 179 movegui(hObject,'center') 180 %UvData.OpenParam.PosColorbar=[0.8450 0.0900 0.0190 0.3600]; 180 181 UvData.OpenParam.PosColorbar=[0.805 0.022 0.019 0.445]; 181 182 UvData.OpenParam.PosSetObject=[-0.05 -0.03 0.3 0.7]; %position for set_object … … 2439 2440 end 2440 2441 UvData.Field.Mesh=min(Mesh); 2441 UvData.Field.XMax=max(CoordMax(ind, 1));2442 UvData.Field.XMin=min(CoordMin(ind, 1));2443 UvData.Field.YMax=max(CoordMax(ind, 2));2444 UvData.Field.YMin=max(CoordMin(ind, 2));2442 UvData.Field.XMax=max(CoordMax(ind,end)); 2443 UvData.Field.XMin=min(CoordMin(ind,end)); 2444 UvData.Field.YMax=max(CoordMax(ind,end-1)); 2445 UvData.Field.YMin=max(CoordMin(ind,end-1)); 2445 2446 if NbDim==3 2446 UvData.Field.ZMax=max(CoordMax(ind, 3));2447 UvData.Field.ZMin=max(CoordMin(ind, 3));2447 UvData.Field.ZMax=max(CoordMax(ind,1)); 2448 UvData.Field.ZMin=max(CoordMin(ind,1)); 2448 2449 end 2449 2450 % adjust the mesh to a value 1, 2 , 5 *10^n … … 3061 3062 end 3062 3063 if isequal(field,'image')||isequal(field_1,'image') 3063 set(handles.TitleNpx,'Visible','on')% visible npx,pxcm... buttons 3064 set(handles.TitleNpy,'Visible','on') 3064 set(handles.TitleNpxy,'Visible','on')% visible npx,pxcm... buttons 3065 3065 set(handles.num_Npx,'Visible','on') 3066 3066 set(handles.num_Npy,'Visible','on') 3067 3067 else 3068 set(handles.TitleNpx,'Visible','off')% visible npx,pxcm... buttons 3069 set(handles.TitleNpy,'Visible','off') 3068 set(handles.TitleNpxy,'Visible','off')% visible npx,pxcm... buttons 3070 3069 set(handles.num_Npx,'Visible','off') 3071 3070 set(handles.num_Npy,'Visible','off') … … 3148 3147 set(handles.SubField,'Value',0) 3149 3148 else %valid browser input: display the selected image 3150 set(handles.TitleNpx,'Visible','on')% visible npx,pxcm... buttons 3151 set(handles.TitleNpy,'Visible','on') 3149 set(handles.TitleNpxy,'Visible','on')% visible npx,pxcm... buttons 3152 3150 set(handles.num_Npx,'Visible','on') 3153 3151 set(handles.num_Npy,'Visible','on') … … 3161 3159 end 3162 3160 if ~isequal(field,'image') 3163 set(handles.TitleNpx,'Visible','off')% visible npx,pxcm... buttons 3164 set(handles.TitleNpy,'Visible','off') 3161 set(handles.TitleNpxy,'Visible','off')% visible npx,pxcm... buttons 3165 3162 set(handles.num_Npx,'Visible','off') 3166 3163 set(handles.num_Npy,'Visible','off') … … 4839 4836 % --- Executes on selection change in Coord_x. 4840 4837 function Coord_x_Callback(hObject, eventdata, handles) 4838 4839 4840 % --- Executes on button press in CheckColorBar. 4841 function CheckColorBar_Callback(hObject, eventdata, handles) 4842 % hObject handle to CheckColorBar (see GCBO) 4843 % eventdata reserved - to be defined in a future version of MATLAB 4844 % handles structure with handles and user data (see GUIDATA) 4845 4846 % Hint: get(hObject,'Value') returns toggle state of CheckColorBar
Note: See TracChangeset
for help on using the changeset viewer.