Added writing max_mean to params.
This commit is contained in:
parent
1db2b476f5
commit
540f40ec7c
@ -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 left and right borders of the maximum's region should be set.
|
||||
% By pressing "Apply" the normalization will be executed and the graph
|
||||
% changes to the normalized data. The borders of the maximum region will
|
||||
% also be appended to the params struct.
|
||||
% changes to the normalized data. The borders of the maximum region and
|
||||
% the mean of maximums will also be appended to the params struct.
|
||||
% By pressing "Reset" the graph will return to show the original data.
|
||||
% Exit the function by pressing "Done".
|
||||
|
||||
@ -94,6 +94,7 @@ uiwait(fig)
|
||||
axis tight
|
||||
%writing parameter
|
||||
params.region_of_max = [left_point right_point];
|
||||
params.max_mean = maxima_mean / max(maxima_mean);
|
||||
end
|
||||
|
||||
function NormResetButtonPushed(src,event)
|
||||
|
Loading…
x
Reference in New Issue
Block a user