Finished objectifying #8
| @ -7,8 +7,8 @@ function [dataOUT,params] = normalize_data(dataIN,params) | |||||||
| %   The function will show the input data and offer two input fields, where | %   The function will show the input data and offer two input fields, where | ||||||
| %   the left and right borders of the maximum's region should be set. | %   the left and right borders of the maximum's region should be set. | ||||||
| %   By pressing "Apply" the normalization will be executed and the graph | %   By pressing "Apply" the normalization will be executed and the graph | ||||||
| %   changes to the normalized data. The borders of the maximum region will | %   changes to the normalized data. The borders of the maximum region and | ||||||
| %   also be appended to the params struct. | %   the mean of maximums will also be appended to the params struct. | ||||||
| %   By pressing "Reset" the graph will return to show the original data. | %   By pressing "Reset" the graph will return to show the original data. | ||||||
| %   Exit the function by pressing "Done". | %   Exit the function by pressing "Done". | ||||||
| 
 | 
 | ||||||
| @ -94,6 +94,7 @@ uiwait(fig) | |||||||
|         axis tight |         axis tight | ||||||
|         %writing parameter |         %writing parameter | ||||||
|         params.region_of_max = [left_point right_point]; |         params.region_of_max = [left_point right_point]; | ||||||
|  |         params.max_mean = maxima_mean / max(maxima_mean); | ||||||
|     end |     end | ||||||
| 
 | 
 | ||||||
|     function NormResetButtonPushed(src,event) |     function NormResetButtonPushed(src,event) | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user