Changeset 38 for trunk/src/get_field.m
- Timestamp:
- Mar 7, 2010, 6:30:11 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/get_field.m
r34 r38 543 543 DimIndex_v(ind)=[];%Mremove singleton 544 544 if ~isequal(DimIndex_u,DimIndex_v) 545 warndlg_uvmat('inconsistent dimensions for u and v','ERROR')545 msgbox_uvmat('ERROR','inconsistent dimensions for u and v') 546 546 set(handles.vector_y,'Value',1); 547 547 return 548 548 elseif test_scalar & ~isequal(DimIndex_u,DimIndex) 549 warndlg_uvmat('inconsistent dimensions for vector and scalar represented as vector color','ERROR')549 msgbox_uvmat('ERROR','inconsistent dimensions for vector and scalar represented as vector color') 550 550 set(handles.scalar,'Value',1); 551 551 return … … 561 561 nbdim=length(DimIndex); 562 562 if nbdim > 3 563 warndlg_uvmat('array with more than three dimensions, not supported','ERROR')563 msgbox_uvmat('ERROR','array with more than three dimensions, not supported') 564 564 return 565 565 else … … 590 590 test_grid=1; 591 591 else 592 warndlg_uvmat('multiple dimensions for the z coordinate','ERROR')592 msgbox_uvmat('ERROR','multiple dimensions for the z coordinate') 593 593 return 594 594 end … … 634 634 end 635 635 elseif test_grid 636 warndlg_uvmat('the dimension of the y coordinate variable should be 1','ERROR')636 msgbox_uvmat('ERROR','the dimension of the y coordinate variable should be 1') 637 637 end 638 638 end … … 677 677 DimIndex=DimIndex(perm_ind); 678 678 elseif test_grid 679 warndlg_uvmat('the dimension of the x coordinate variable should be 1','ERROR')679 msgbox_uvmat('ERROR','the dimension of the x coordinate variable should be 1') 680 680 end 681 681 if isequal(DimIndex_x,DimIndex) … … 1282 1282 check_vector_Callback(hObject, eventdata, handles) 1283 1283 end 1284 %1285 % % --- Executes on selection change in menu_coord.1286 % function menu_coord_Callback(hObject, eventdata, handles)1287 % hget_field=get(handles.menu_coord,'parent');1288 % menu=get(handles.menu_coord,'String');1289 % ind_coord=get(handles.menu_coord,'Value');1290 % coord_option=menu{ind_coord};1291 % if isequal(coord_option,'more...');1292 % fct_name='';1293 % if exist('./TMP/current_usr_fct.mat','file')% if a file is found1294 % h=load('./TMP/current_usr_fct.mat');1295 % if isfield(h,'fct_name');1296 % fct_name=h.fct_name;1297 % end1298 % end1299 % prompt = {'Enter the name of the transform function'};1300 % dlg_title = 'user defined transform';1301 % num_lines= 1;1302 % [FileName, PathName, filterindex] = uigetfile( ...1303 % {'*.m', ' (*.m)';1304 % '*.m', '.m files '; ...1305 % '*.*', 'All Files (*.*)'}, ...1306 % 'Pick a file', fct_name);1307 % fct_name=fullfile(PathName,FileName);1308 % addpath(PathName);%add the path to the selected fct1309 % [errormsg,date_str]=check_functions;%check whether new functions can oversed the uvmat package A UTILISER1310 % if ~exist(fct_name,'file')1311 % warndlg_uvmat(['image procesing fct ' fct_name ' not found'],'WARNING')1312 % else1313 % transform=FileName(1:end-2);%1314 % menu=update_menu(handles.menu_coord,transform);%add the selected fct to the menu1315 % % set(handles.mouse_coord,'String',menu([1:end-1])')%update the mouse coord menu1316 % save ('./TMP/current_usr_fct.mat','fct_name');1317 % end1318 % end1319 1320 1321 1284 1322 1285 %----------------------------------------------------- … … 1330 1293 name=get(hh(ifig),'Name'); 1331 1294 if ~isequal(name,'uvmat')%case of uvmat GUI 1332 % ilist=ilist+1;1333 % list{ilist,1}='uvmat';1334 % else %other figures1335 1295 hchild=get(hh(ifig),'children');% look for axes contained in each figure 1336 1296 nbaxe=0;
Note: See TracChangeset
for help on using the changeset viewer.