diff --git a/normalize_data.m b/normalize_data.m index 3d56a43..20dd4fb 100644 --- a/normalize_data.m +++ b/normalize_data.m @@ -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)