From 540f40ec7c2bb65cb9affab949dd8f460b04657d Mon Sep 17 00:00:00 2001 From: sakul-45 <81963567+sakul-45@users.noreply.github.com> Date: Sun, 11 Jul 2021 16:28:53 +0200 Subject: [PATCH] Added writing max_mean to params. --- normalize_data.m | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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)