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) | ||||
| 
 | ||||
| %% Callback functions | ||||
|     function FieldApplyButtonPushed(src,event) | ||||
|     function FieldApplyButtonPushed(~,event) | ||||
|         field_baseline = str2double(get(p1,'String')); | ||||
|         field_cut = str2double(get(p2,'String')); | ||||
|         %field baseline CUTTING | ||||
| @ -102,6 +102,9 @@ uiwait(fig) | ||||
|         plot(ax,dataOUT_transp) | ||||
|         axis tight | ||||
|         %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(:,end-field_cut:end) = []; | ||||
|         %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