- Timestamp:
- Mar 24, 2010, 8:47:23 PM (15 years ago)
- Location:
- trunk/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/civ.m
r57 r65 3598 3598 3599 3599 s=-1; 3600 display(['!' civ1_exe ' -f ' filename_cmx ' > ' namelog ])3601 eval(['!' civ1_exe ' -f ' filename_cmx ' > ' namelog ]);3600 display(['!' civ1_exe ' -f ' filename_cmx ' > ' namelog ' &']) 3601 eval(['!' civ1_exe ' -f ' filename_cmx ' > ' namelog ' &']); 3602 3602 % if sge%dispatch computation on the cluster using interactive queue 3603 3603 % % [s,w] = unix(['qrsh -q fast.q ' civ1_exe ' -f ' filename_cmx ' > ' namelog ' 2>&1' ]); … … 3760 3760 dlmwrite(filename_cmx,textout,''); 3761 3761 s=-1; 3762 display(['!' civ2_exe ' -f ' filename_cmx ' > ' namelog ])3763 eval(['!' civ2_exe ' -f ' filename_cmx ' > ' namelog ]);3762 display(['!' civ2_exe ' -f ' filename_cmx ' > ' namelog ' &']) 3763 eval(['!' civ2_exe ' -f ' filename_cmx ' > ' namelog ' &']); 3764 3764 3765 3765 % if sge%dispatch computation on the cluster using interactive queue … … 3782 3782 if test_interp==0 3783 3783 cmd_PATCH=[patch_exe ' -f ' filename_nc ' -m ' nx_patch ' -n ' ny_patch ' -ro ' rho_patch ' -nopt ' subdomain_patch ... 3784 ' > ' namelog ' 2>&1 ']; % redirect standard output to the log file3784 ' > ' namelog ' 2>&1 &']; % redirect standard output to the log file 3785 3785 else %nouveau programme patch 3786 3786 cmd_PATCH=[patch_new_exe ' -f ' filename_nc ' -m ' nx_patch ' -n ' ny_patch ' -ro ' rho_patch ... 3787 ' -max ' thresh_value ' -nopt ' subdomain_patch ' > ' namelog ' 2>&1 ']; % redirect standard output to the log file3787 ' -max ' thresh_value ' -nopt ' subdomain_patch ' > ' namelog ' 2>&1 &']; % redirect standard output to the log file 3788 3788 end 3789 3789 -
trunk/src/mouse_down.m
r62 r65 38 38 test_create=~testzoom && (isequal(MouseAction,'create_object') || isequal(MouseAction,'create_mask')); 39 39 %test_cal=get(handles.cal,'Value'); 40 test_cal= isequal(MouseAction,'calib');41 test_ruler= isequal(MouseAction,'ruler');42 menu_coord=get(hhuvmat.transform_fct,'String');43 coord_choice=get(hhuvmat.transform_fct,'Value');44 coord_type=menu_coord{coord_choice};45 test_edit= isequal(MouseAction,'edit_object');46 test_edit_vect= isequal(MouseAction,'edit_vect');40 test_cal=strcmp(MouseAction,'calib'); 41 test_ruler=strcmp(MouseAction,'ruler'); 42 % menu_coord=get(hhuvmat.transform_fct,'String'); 43 % coord_choice=get(hhuvmat.transform_fct,'Value'); 44 % coord_type=menu_coord{coord_choice}; 45 test_edit=strcmp(MouseAction,'edit_object'); 46 test_edit_vect=strcmp(MouseAction,'edit_vect'); 47 47 xdisplay=[];%default 48 48 ydisplay=[];%default … … 257 257 geometry_calib('ListCoord_Callback',hObject,eventdata,hh_geometry_calib) 258 258 data=read_geometry_calib(Coord); 259 if isequal(coord_type,'px')|isequal(coord_type,'');%px cordinates259 % if isequal(coord_type,'px')|isequal(coord_type,'');%px cordinates 260 260 XCoord=data.Coord(:,4); 261 261 YCoord=data.Coord(:,5); 262 else %phys cordinates263 XCoord=data.Coord(:,1);264 YCoord=data.Coord(:,2);265 end262 % else %phys cordinates 263 % XCoord=data.Coord(:,1); 264 % YCoord=data.Coord(:,2); 265 % end 266 266 hh=findobj('Tag','calib_points'); 267 267 if isempty(hh) -
trunk/src/mouse_motion.m
r61 r65 89 89 (AxeData.Y<(xy(1,2)+AxeData.Mesh/3) & AxeData.Y>(xy(1,2)-AxeData.Mesh/3));%f 90 90 ivec=find(flag_vec);% search the selected vector index ivec 91 hhh=findobj(haxes,'Tag','vector_marker'); 91 92 if length(ivec)>0 93 %ivec=ivec(1);%choice the first selected vector if several are selected 92 94 if ~test_create 93 95 pointershape='arrow'; %mouse indicates the detection of a vector 94 hhh=findobj(haxes,'Tag','vector_marker');96 95 97 if isempty(hhh) 96 line(AxeData.X(ivec),AxeData.Y(ivec),'Color','m','Tag','vector_marker','LineStyle','.','Marker','o','MarkerSize',AxeData.Mesh); 98 set(currentfig,'CurrentAxes',haxes) 99 rectangle('Curvature',[1 1],... 100 'Position',[AxeData.X(ivec)-AxeData.Mesh AxeData.Y(ivec)/2-AxeData.Mesh/2 AxeData.Mesh AxeData.Mesh],'EdgeColor','m',... 101 'LineStyle','-','Tag','vector_marker'); 102 % line(AxeData.X(ivec),AxeData.Y(ivec),'Color','m','Tag','vector_marker','LineStyle','.','Marker','o','MarkerSize',AxeData.Mesh); 97 103 else 98 set(hhh,'XData',AxeData.X(ivec)) 99 set(hhh,'YData',AxeData.Y(ivec)) 104 set(hhh,'Position',[AxeData.X(ivec)-AxeData.Mesh/2 AxeData.Y(ivec)-AxeData.Mesh/2 AxeData.Mesh AxeData.Mesh]) 100 105 end 101 end 102 ivec=ivec(1);%choice the first selected vector if several are selected 106 end 103 107 mouse.X=AxeData.X(ivec); 104 108 mouse.Y=AxeData.Y(ivec); … … 106 110 v_mouse=AxeData.V(ivec); 107 111 w_mouse=0; %default 108 if isfield(AxeData,'W') &length(AxeData.W)>=ivec112 if isfield(AxeData,'W') & length(AxeData.W)>=ivec 109 113 w_text=[', w=' num2str(AxeData.W(ivec),3)]; 110 114 else … … 124 128 else 125 129 ff_text=''; 130 end 131 else 132 if ~isempty(hhh) 133 delete(hhh) 126 134 end 127 135 end -
trunk/src/name_generator.m
r19 r65 60 60 num_i2=num_i1; %default 61 61 end 62 if ~exist('num_j2','var') || isequal(num_i2,[]) 63 num_j2=num_j1; %default 64 end 62 65 if ~exist('subdir','var')|| isempty(subdir) 63 66 subdir='' ; %default 64 67 end 65 %detection of mask or mean: filebase of the form [root '_' xxx 'm$$$'] with xxx a number and $$$ three characters 66 % if length(filebase)>4 & filebase(end-3)=='m'; 67 % basedouble=double(filebase); 68 % val=(48>basedouble)|(basedouble>57);% select the non-numerical characters 69 % i=length(filebase)-4; 70 % while val(i)==0 & i>0 71 % i=i-1; 72 % end 73 % nbslice=str2num(filebase(i+1:end-4)); 74 % if ~isequal(nbslice,[]) 75 % num_i1=mod(num_i1-1,nbslice)+1; %take the rest in the division 76 % if isequal(nom_type,'png_old')|isequal(nom_type,'#a') 77 % num_j1=1;% mask name must end by 'a' 78 % end 79 % end 80 % end 68 num_i1_out=num_i1;%default output 69 num_j1_out=num_j1;%default output 70 num_i2_out=num_i2;%default output 71 num_j2_out=num_j2;%default output 72 81 73 test_pairs=isequal(nom_type,'netc_old')| isequal(nom_type,'netc_2D') | isequal(nom_type,'netc_3D')| isequal(nom_type,'_i1-i2_j1-j2')| ... 82 74 isequal(nom_type,'netc_series')| isequal(nom_type,'#_ab')| isequal(nom_type,'_i_j1-j2')| isequal(nom_type,'_i1-i2_j')| isequal(nom_type,'_i1-i2'); … … 85 77 if isequal(nom_type,'series_i')| isequal(nom_type,'_i'); 86 78 filename=[filebase '_' num2str(num_i1) ext]; 87 % idetect=(exist(filename,'file')==2); 79 num_i2_out=num_i1; 80 num_j1_out=[]; 81 num_j2_out=[]; 88 82 elseif length(nom_type)==5 && isequal(nom_type(1:3),'_%0')&& isequal(nom_type(5),'d'); 89 83 filename=[filebase '_' num2str(num_i1,nom_type(2:5)) ext]; 90 % idetect=(exist(filename,'file')==2); 84 num_i2_out=num_i1; 85 num_j2_out=num_j1; 91 86 elseif isequal(nom_type,'series_i_j')| isequal(nom_type,'_i_j') 92 87 filename=[filebase '_' num2str(num_i1) '_' num2str(num_j1) ext]; 93 % idetect=(exist(filename,'file')==2); 88 num_i2_out=num_i1; 89 num_j2_out=num_j1; 94 90 elseif isequal(nom_type,'png_old')| isequal(nom_type,'#a')| isequal(nom_type,'#A') 95 91 filename=[filebase num2str(num_i1,'%03d') num2stra(num_j1,nom_type) ext]; 96 % idetect=(exist(filename,'file')==2); 92 num_i2_out=num_i1; 93 num_j2_out=num_j1; 97 94 elseif length(nom_type)>=5 & isequal(nom_type(2:3),'%0') & isequal(nom_type(5),'d') %isequal(nom_type,'_%04dA') %camera PCO Toulouse 98 95 filename=[filebase nom_type(1) num2str(num_i1,nom_type(2:4)) num2stra(num_j1,nom_type) ext]; 99 % idetect=(exist(filename,'file')==2); 96 num_i2_out=num_i1; 97 num_j2_out=num_j1; 100 98 elseif isequal(nom_type,'raw_SMD') %suffix a, b, c without extension 101 99 filename=[filebase num2str(num_i1,'%03d') num2stra(num_j1,nom_type)]; 102 % idetect=(exist(filename,'file')==2); 100 num_i2_out=num_i1; 101 num_j2_out=num_j1; 103 102 elseif isequal(nom_type,'ima_num')| isequal(nom_type,'#') 104 103 filename=[filebase num2str(num_i1) ext]; 105 % idetect=(exist(filename,'file')==2); 104 num_i2_out=num_i1; 105 num_j1_out=[]; 106 num_j2_out=[]; 106 107 elseif length(nom_type)>=4 & isequal(nom_type(1:2),'%0') & isequal(nom_type(end),'d') 107 filename=[filebase num2str(num_i1,nom_type) ext]; %test number with a 0 before 108 % idetect=(exist(filename,'file')==2); 108 filename=[filebase num2str(num_i1,nom_type) ext]; %test number with a 0 before 109 num_i2_out=num_i1; 110 num_j1_out=[]; 111 num_j2_out=[]; 109 112 110 113 %case of derived file indexing (e.g. netcdf files) 111 114 elseif test_pairs 112 if (~exist('num_j2','var')| isequal(num_j2,[])) & test_2D113 num_j2=num_j1+1; %default if num_j2 undefined114 end115 if (~exist('num_i2','var')| isequal(num_i2,[])) & test_3D116 num_i2=num_i1+1; %default if num_i2 undefined117 end118 115 filebasesub=filebase; 119 116 % get the root name filebasesub for the netcdf files … … 123 120 end 124 121 %inexistant pair if num_i2=0 or num_j2=0 125 if isequal(num_i2,0)126 filename=[filebasesub '*-*_' num2str(num_i1) ext];127 return128 end129 if isequal(num_j2,0)130 filename=[filebasesub '_' num2str(num_i1) '_*-*' ext];131 return132 end122 % if isequal(num_i2,0) 123 % filename=[filebasesub '*-*_' num2str(num_i1) ext]; 124 % return 125 % end 126 % if isequal(num_j2,0) 127 % filename=[filebasesub '_' num2str(num_i1) '_*-*' ext]; 128 % return 129 % end 133 130 % case of an imposed image pair (comp_input=1) 134 131 if (exist('comp_input','var') & isequal(comp_input,1)) … … 139 136 filename=[filebasesub num2str(num_i1,'%03d') '_' num2stra(num_j1,nom_type) num2stra(num_j2,nom_type) ext]; 140 137 end 138 num_i2_out=num_i1; 141 139 elseif isequal(nom_type,'netc_2D')|isequal(nom_type,'_i_j1-j2') 142 140 if isequal(num2str(num_j1),num2str(num_j2))% case of displacements at the same time … … 145 143 filename=[filebasesub '_' num2str(num_i1) '_' num2str(num_j1) '-' num2str(num_j2) ext]; 146 144 end 145 num_i2_out=num_i1; 147 146 elseif isequal(nom_type,'netc_3D') || isequal(nom_type,'_i1-i2_j') 148 147 if isequal(num2str(num_i1),num2str(num_i2))% case of displacements at the same time … … 151 150 filename=[filebasesub '_' num2str(num_i1) '-' num2str(num_i2) '_' num2str(num_j1) ext]; 152 151 end 152 num_j2_out=num_j1; 153 153 elseif isequal(nom_type,'netc_series') || isequal(nom_type,'_i1-i2') 154 154 if isequal(num2str(num_i1),num2str(num_i2))% case of displacements at the same time … … 157 157 filename=[filebasesub '_' num2str(num_i1) '-' num2str(num_i2) ext]; 158 158 end 159 num_j2_out=num_j1; 159 160 elseif isequal(nom_type,'_i1-i2_j1-j2') 160 161 if isequal(num2str(num_i1),num2str(num_i2))% case of displacements at the same time … … 174 175 % case of an image pair to determine (comp_input=0) 175 176 else 176 [filename,num_i1 ,num_j1,num_i2,num_j2,idetect]=search_pair(filebasesub,num_i1,num_j1,num_i2,nom_type);177 [filename,num_i1_out,num_j1_out,num_i2_out,num_j2_out,idetect]=search_pair(filebasesub,num_i1,num_j1,num_i2,nom_type); 177 178 end 178 179 … … 216 217 idetect=(exist(filename,'file')==2); 217 218 else 218 [filename,num_i1 ,num_j1,num_i2,num_j2,idetect]=search_pair(filebasesub,num_i1,num_j1,num_i2,nom_type);219 [filename,num_i1_out,num_j1_out,num_i2_out,num_j2_out,idetect]=search_pair(filebasesub,num_i1,num_j1,num_i2,nom_type); 219 220 end 220 221 end … … 229 230 idetect=(exist(filename,'file')==2); 230 231 end 231 num_i1_out=num_i1;232 num_j1_out=num_j1;233 if exist('num_i2','var'), num_i2_out=num_i2; else, num_i2_out=[]; end;234 if exist('num_j2','var'), num_j2_out=num_j2; else, num_j2_out=[]; end;235 232 if ~isequal(subdir,'?'), subdir_out=subdir; else, subdir_out='';end; 236 233 -
trunk/src/uvmat.m
r62 r65 626 626 update_rootinfo(hObject,eventdata,handles) 627 627 628 %------------------------------------------------------------------- 629 %-- called by action in FileIndex edit box 630 %------------------------------------------------------------------- 631 function FileIndex_Callback(hObject, eventdata, handles) 632 NomType_str=get(handles.FileIndex,'String') ; 633 [P,F,str1,str2,str_a,str_b]=name2display(['xx' NomType_str get(handles.FileExt,'String')]); 634 % display the new index values on the counters 635 set(handles.i1,'String',str1); 636 set(handles.i2,'String',str2); 637 set(handles.j1,'String',str_a); 638 set(handles.j2,'String',str_b); 628 629 630 631 639 632 640 633 %------------------------------------------------------------------- … … 1670 1663 num1=num1+increment; 1671 1664 num2=num2+increment; 1672 [filename,num1,num_a,num2,num_b]=name_generator(filebase,num1,num_a,FileExt,NomType,comp_input,num2,num_b,subdir) ;1665 [filename,num1,num_a,num2,num_b]=name_generator(filebase,num1,num_a,FileExt,NomType,comp_input,num2,num_b,subdir) 1673 1666 if sub_value% set the second field name and indices 1674 1667 num1_1=num1_1+increment; … … 1691 1684 % end 1692 1685 end 1693 filename=name_generator(filebase,num1,num_a,FileExt,NomType,comp_input,num2,num_b,subdir);1686 [filename,num1,num_a,num2,num_b]=name_generator(filebase,num1,num_a,FileExt,NomType,comp_input,num2,num_b,subdir); 1694 1687 end 1695 1688 … … 1745 1738 index_fields=get(handles.Fields,'Value');% selected string index 1746 1739 FieldName=list_fields{index_fields}; % selected field 1740 UvData=get(handles.uvmat,'UserData'); 1747 1741 if isequal(FieldName,'image') 1748 % run0_Callback(hObject, eventdata, handles)%display the first image 1749 UvData=get(handles.uvmat,'UserData'); 1750 else 1751 msgbox_uvmat('ERROR','an image or movie must be first introduced as input') 1752 return 1753 end 1754 [ff,rr,filebase,xx,Ext,SubDir]=read_file_boxes(handles); 1755 NomType=get(handles.FileIndex,'UserData'); 1742 test_1=0; 1743 [ff,rr,filebase,xx,Ext,SubDir]=read_file_boxes(handles); 1744 NomType=get(handles.FileIndex,'UserData'); 1745 else 1746 list_fields=get(handles.Fields_1,'String');% list menu fields 1747 index_fields=get(handles.Fields_1,'Value');% selected string index 1748 FieldName=list_fields{index_fields}; % selected field 1749 if isequal(FieldName,'image') 1750 test_1=1; 1751 [ff,rr,filebase,xx,Ext,SubDir]=read_file_boxes_1(handles); 1752 NomType=get(handles.FileIndex_1,'UserData'); 1753 else 1754 msgbox_uvmat('ERROR','an image or movie must be first introduced as input') 1755 return 1756 end 1757 end 1758 1756 1759 num_i1=stra2num(get(handles.i1,'String')); 1757 1760 num_j1=stra2num(get(handles.j1,'String')); … … 1779 1782 %read the second image 1780 1783 Field.AName='image'; 1781 Field.AX=UvData.Field.AX; 1782 Field.AY=UvData.Field.AY; 1784 if test_1 1785 Field_a=UvData.Field_1; 1786 else 1787 Field_a=UvData.Field; 1788 end 1789 Field_b.AX=Field_a.AX; 1790 Field_b.AY=Field_a.AY; 1783 1791 % z index 1784 1792 nbslice=str2double(get(handles.nb_slice,'String')); 1785 1793 if ~isempty(nbslice) 1786 Field .ZIndex=mod(num_i2-1,nbslice)+1;1787 end 1788 Field .CoordType='px';1794 Field_b.ZIndex=mod(num_i2-1,nbslice)+1; 1795 end 1796 Field_b.CoordType='px'; 1789 1797 %determine the input file type 1790 if isfield(UvData,'MovieObject')1798 if (test_1 && isfield(UvData,'MovieObject_1'))||(~test_1 && isfield(UvData,'MovieObject')) 1791 1799 FileType='movie'; 1792 1800 elseif isequal(lower(Ext),'.avi') … … 1806 1814 switch FileType 1807 1815 case 'movie' 1808 Field.A=read(UvData.MovieObject,num_i2); 1816 if test_1 1817 Field_b.A=read(UvData.MovieObject_1,num_i2); 1818 else 1819 Field_b.A=read(UvData.MovieObject,num_i2); 1820 end 1809 1821 case 'avi' 1810 1822 mov=aviread(imaname_1,num_i2); 1811 Field .A=frame2im(mov(1));1823 Field_b.A=frame2im(mov(1)); 1812 1824 case 'vol' 1813 Field .A=imread(imaname_1);1825 Field_b.A=imread(imaname_1); 1814 1826 case 'multimage' 1815 Field .A=imread(imaname_1,num_i2);1827 Field_b.A=imread(imaname_1,num_i2); 1816 1828 case 'image' 1817 Field .A=imread(imaname_1);1829 Field_b.A=imread(imaname_1); 1818 1830 end 1819 1831 if get(handles.slices,'Value') … … 1828 1840 transform=transform_list{choice_value}; 1829 1841 if ~isequal(transform_name,'') && ~isequal(transform_name,'px') 1830 if isfield(UvData,'XmlData') && isfield(UvData.XmlData,'GeometryCalib')%use geometry calib recorded from the ImaDoc xml file as first priority 1831 Field=transform(Field,UvData.XmlData); 1842 if test_1 && isfield(UvData,'XmlData_1') && isfield(UvData.XmlData_1,'GeometryCalib')%use geometry calib recorded from the ImaDoc xml file as first priority 1843 Field_b=transform(Field_b,UvData.XmlData_1); 1844 elseif ~test_1 && isfield(UvData,'XmlData') && isfield(UvData.XmlData,'GeometryCalib')%use geometry calib 1845 Field_b=transform(Field_b,UvData.XmlData); 1832 1846 end 1833 1847 end … … 1840 1854 while get(handles.speed,'Value')~=0 && isequal(get(handles.movie_pair,'BusyAction'),'queue')%isequal(get(handles.run0,'BusyAction'),'queue'); % enable STOP command 1841 1855 % read and plot the series of images in non erase mode 1842 set(hima,'CData',Field .A);1856 set(hima,'CData',Field_b.A); 1843 1857 pause(1.02-get(handles.speed,'Value'));% wait for next image 1844 set(hima,'CData', UvData.Field.A);1858 set(hima,'CData',Field_a.A); 1845 1859 pause(1.02-get(handles.speed,'Value'));% wait for next image 1846 1860 end … … 1966 1980 sub_value=get(handles.SubField,'Value'); 1967 1981 FileType_1='none';%default 1968 %if sub_value==1 1982 %if sub_value== 1983 filename_1 1969 1984 if ~isempty(filename_1) 1970 1985 % test for a constant second field (comparison with a fixed field) 1971 1986 NomType_1=get(handles.FileIndex_1,'UserData'); 1972 Ext_1=get(handles.FileExt_1,'String') ;1987 Ext_1=get(handles.FileExt_1,'String') 1973 1988 % determine the input file type 1974 1989 if isequal(Ext_1,'.nc')||isequal(Ext_1,'.cdf') … … 1984 1999 FieldName_1='image'; 1985 2000 else 1986 form=imformats(Ext ([2:end]));2001 form=imformats(Ext_1([2:end])); 1987 2002 if ~isempty(form)% if the extension corresponds to an image format recognized by Matlab 1988 2003 if isequal(NomType_1,'*'); … … 2064 2079 A=read(UvData.MovieObject_1,num_i1); 2065 2080 case 'avi' 2066 mov=aviread(filename ,num_i1);2081 mov=aviread(filename_1,num_i1); 2067 2082 A=frame2im(mov(1)); 2068 2083 case 'vol' 2069 A=imread(filename );2084 A=imread(filename_1); 2070 2085 case 'multimage' 2071 A=imread(filename ,num_i1);2086 A=imread(filename_1,num_i1); 2072 2087 case 'image' 2073 A=imread(filename); 2088 A=imread(filename_1); 2089 case 'netcdf' 2090 otherwise 2091 errormsg=['unknown input file type ' filename_1]; 2074 2092 end 2075 2093 npxy=size(A); … … 2498 2516 set(handles.MaxA,'String','255') 2499 2517 end 2500 IndexObj=get(handles.list_object_1,'Value'); 2501 Object=UvData.Object; 2502 IndexObj=min(IndexObj,numel(Object)); 2503 for iobj=[1 IndexObj] 2504 if ~isempty(Object{iobj})%& isfield(Object{iobj},'plotaxes')& ishandle(Object{iobj}.plotaxes) 2518 IndexObj(1)=get(handles.list_object_1,'Value'); 2519 if IndexObj(1)> numel(UvData.Object) 2520 IndexObj(1)=1; 2521 end 2522 IndexObj_2=get(handles.list_object_2,'Value'); 2523 if IndexObj_2 <= numel(UvData.Object) 2524 IndexObj(2)=IndexObj_2; 2525 end 2526 for iobj=IndexObj 2527 if ~isempty(UvData.Object{iobj})%& isfield(Object{iobj},'plotaxes')& ishandle(Object{iobj}.plotaxes) 2505 2528 %Projeter les champs sur l'objet:* 2506 ObjectData=proj_field(UvData.Field, Object{iobj},iobj);2529 ObjectData=proj_field(UvData.Field,UvData.Object{iobj},iobj); 2507 2530 2508 2531 %use of mask … … 2554 2577 if ~isempty(ObjectData) 2555 2578 haxes=[];%default 2556 if isfield( Object{iobj},'plotaxes')2557 haxes= Object{iobj}.plotaxes;%axes used for representing the projection on the object2579 if isfield(UvData.Object{iobj},'plotaxes') 2580 haxes=UvData.Object{iobj}.plotaxes;%axes used for representing the projection on the object 2558 2581 end 2559 2582 PosColorbar=[];%default: no colorbar … … 4169 4192 IndexObj=get(handles.list_object_1,'Value'); 4170 4193 str_1=list_str{IndexObj}; 4171 % set(handles.list_object_1,'BackgroundColor',[1 1 0])4172 % set(handles.list_object_2,'BackgroundColor',[1 1 1])4173 4194 val_2=get(handles.list_object_2,'Value'); 4174 4195 str_2=get(handles.list_object_2,'String');
Note: See TracChangeset
for help on using the changeset viewer.