Fixed paramter correction in params struct. Some weren't taken into
account previosly
This commit is contained in:
		
							parent
							
								
									85c2af4bb4
								
							
						
					
					
						commit
						957ce7a2fc
					
				| @ -82,7 +82,7 @@ uicontrol(p1); %passes focus to input | |||||||
| uiwait(fig) | uiwait(fig) | ||||||
| 
 | 
 | ||||||
| %% Callback functions | %% Callback functions | ||||||
|     function FieldApplyButtonPushed(src,event) |     function FieldApplyButtonPushed(~,event) | ||||||
|         field_baseline = str2double(get(p1,'String')); |         field_baseline = str2double(get(p1,'String')); | ||||||
|         field_cut = str2double(get(p2,'String')); |         field_cut = str2double(get(p2,'String')); | ||||||
|         %field baseline CUTTING |         %field baseline CUTTING | ||||||
| @ -102,6 +102,9 @@ uiwait(fig) | |||||||
|         plot(ax,dataOUT_transp) |         plot(ax,dataOUT_transp) | ||||||
|         axis tight |         axis tight | ||||||
|         %adjusting parameter |         %adjusting parameter | ||||||
|  |         params.Field_Sweep = params.Field_Sweep - params.Field_Step*2*field_cut; | ||||||
|  |         params.Field_Start = params.Field_Start + params.Field_Step*field_cut; | ||||||
|  |         params.Field_End = params.Field_End + params.Field_Step*field_cut; | ||||||
|         params.Field_Vector(:,1:field_cut) = []; |         params.Field_Vector(:,1:field_cut) = []; | ||||||
|         params.Field_Vector(:,end-field_cut:end) = []; |         params.Field_Vector(:,end-field_cut:end) = []; | ||||||
|         %writing parameter |         %writing parameter | ||||||
|  | |||||||
							
								
								
									
										1389
									
								
								example_data.xml
									
									
									
									
									
								
							
							
						
						
									
										1389
									
								
								example_data.xml
									
									
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user