Changeset 757 for trunk/src/series.m
- Timestamp:
- Apr 29, 2014, 10:10:30 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series.m
r752 r757 757 757 set(handles.num_incr_i,'String',num2str(diff_i_max(1)))% detect an increment to dispaly by default 758 758 end 759 if isequal (diff_j_max,diff_j_max(1)*ones(size(diff_j_max)))759 if ~isempty(diff_j_max) && isequal (diff_j_max,diff_j_max(1)*ones(size(diff_j_max))) 760 760 set(handles.num_incr_j,'String',num2str(diff_j_max(1))) 761 761 end … … 771 771 MaxIndex_i_table=get(handles.MaxIndex_i,'Data');%retrieve the min indices in the table MinIndex 772 772 MaxIndex_j_table=get(handles.MaxIndex_j,'Data');%retrieve the min indices in the table MinIndex 773 if ~isempty(MinIndex_i)&&~isempty(MaxIndex_i) 773 774 MinIndex_i_table(iview,1)=MinIndex_i; 775 MaxIndex_i_table(iview,1)=MaxIndex_i; 776 end 777 if ~isempty(MinIndex_j)&&~isempty(MaxIndex_j) 774 778 MinIndex_j_table(iview,1)=MinIndex_j; 775 MaxIndex_i_table(iview,1)=MaxIndex_i;776 779 MaxIndex_j_table(iview,1)=MaxIndex_j; 780 end 777 781 set(handles.MinIndex_i,'Data',MinIndex_i_table)%display the min indices in the table MinIndex 778 782 set(handles.MinIndex_j,'Data',MinIndex_j_table)%display the max indices in the table MaxIndex … … 969 973 pair_max=squeeze(max(SeriesData.i1_series{iview},[],1)); %max on pair index 970 974 j_max{iview}=max(pair_max,[],1);%max on j index 975 if ~isempty(j_max{iview}) 971 976 MaxIndex_i(iview)=max(find(j_max{iview}))-1;% max ref index i 972 977 MinIndex_i(iview)=min(find(j_max{iview}))-1;% min ref index i 978 end 973 979 end 974 980 MinIndex_i=min(MinIndex_i); … … 1135 1141 pos_first=(ref_i_1-MinIndex_i)/(MaxIndex_i-MinIndex_i+1); 1136 1142 pos_last=(ref_i_2-MinIndex_i+1)/(MaxIndex_i-MinIndex_i+1); 1143 if isempty(pos_first), pos_first=0; end 1144 if isempty(pos_last), pos_last=1; end 1137 1145 Position=get(handles.Waitbar,'Position');% position of the waitbar:= [ x,y, width, height] 1138 1146 Position_status=get(handles.FileStatus,'Position'); 1139 1147 Position(1)=Position_status(1)+Position_status(3)*pos_first; 1140 Position(3)= Position_status(3)*(pos_last-pos_first);1148 Position(3)=max(Position_status(3)*(pos_last-pos_first),0.001);% width must remain positive 1141 1149 set(handles.Waitbar,'Position',Position) 1142 1150 update_waitbar(handles.Waitbar,0)
Note: See TracChangeset
for help on using the changeset viewer.