Added appending applied parameters to params struct
This commit is contained in:
parent
8f4ea8c6ed
commit
1db2b476f5
@ -1,12 +1,13 @@
|
|||||||
function [dataOUT] = correct_magnetic_basline(dataIN)
|
function [dataOUT,params] = correct_magnetic_basline(dataIN,params)
|
||||||
%CORRECT_MAGNETIC_BASLINE UI for basline correction along field axis
|
%CORRECT_MAGNETIC_BASLINE UI for basline correction along field axis
|
||||||
%
|
%
|
||||||
% Usage: [dataOUT] = CORRECT_MAGNETIC_BASLINE(dataIN), where dataIN is a
|
% Usage: [dataOUT,params] = CORRECT_MAGNETIC_BASLINE(dataIN,params), where
|
||||||
% dataset loaded via the LOAD_MATLAB or LOAD_BRUKER function.
|
% dataIN is a dataset loaded via the LOAD_MATLAB or LOAD_BRUKER function.
|
||||||
%
|
%
|
||||||
% The function will show the input data and offer an input field, where
|
% The function will show the input data and offer an input field, where
|
||||||
% the number of field basline points should be set. By pressing "Apply" the
|
% the number of field basline points should be set. By pressing "Apply" the
|
||||||
% correction will be executed and the graph changes to the corrected data.
|
% correction will be executed and the graph changes to the corrected data.
|
||||||
|
% The number of field baseline points 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".
|
||||||
|
|
||||||
@ -86,6 +87,8 @@ uiwait(fig)
|
|||||||
dataOUT_transp = dataOUT.';
|
dataOUT_transp = dataOUT.';
|
||||||
plot(ax,dataOUT_transp)
|
plot(ax,dataOUT_transp)
|
||||||
axis tight
|
axis tight
|
||||||
|
%writing parameter
|
||||||
|
params.No_field_basline_pts = field_baseline;
|
||||||
end
|
end
|
||||||
|
|
||||||
function FieldResetButtonPushed(src,event)
|
function FieldResetButtonPushed(src,event)
|
||||||
|
@ -1,12 +1,13 @@
|
|||||||
function [dataOUT] = correct_time_baseline(dataIN)
|
function [dataOUT,params] = correct_time_baseline(dataIN,params)
|
||||||
%CORRECT_TIME_BASELINE UI for basline correction along time axis
|
%CORRECT_TIME_BASELINE UI for basline correction along time axis
|
||||||
%
|
%
|
||||||
% Usage: [dataOUT] = CORRECT_TIME_BASELINE(dataIN), where dataIN is a
|
% Usage: [dataOUT,params] = CORRECT_TIME_BASELINE(dataIN,params), where
|
||||||
% dataset loaded via the LOAD_MATLAB or LOAD_BRUKER function.
|
% dataIN is a dataset loaded via the LOAD_MATLAB or LOAD_BRUKER function.
|
||||||
%
|
%
|
||||||
% The function will show the input data and offer an input field, where
|
% The function will show the input data and offer an input field, where
|
||||||
% the number of pretrigger points should be set. By pressing "Apply" the
|
% the number of pretrigger points should be set. By pressing "Apply" the
|
||||||
% correction will be executed and the graph changes to the corrected data.
|
% correction will be executed and the graph changes to the corrected data.
|
||||||
|
% The number of pretigger points 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".
|
||||||
|
|
||||||
@ -82,6 +83,8 @@ uiwait(fig)
|
|||||||
%plotting result
|
%plotting result
|
||||||
plot(ax,dataOUT)
|
plot(ax,dataOUT)
|
||||||
axis tight
|
axis tight
|
||||||
|
%writing parameter
|
||||||
|
params.pretrigger = pretrigger;
|
||||||
end
|
end
|
||||||
|
|
||||||
function TimeResetButtonPushed(src,event)
|
function TimeResetButtonPushed(src,event)
|
||||||
|
@ -1,13 +1,14 @@
|
|||||||
function [dataOUT] = normalize_data(dataIN)
|
function [dataOUT,params] = normalize_data(dataIN,params)
|
||||||
%NORMALISE_DATA normalizes data by max of region
|
%NORMALISE_DATA normalizes data by max of region
|
||||||
%
|
%
|
||||||
% Usage: [dataOUT] = NORMALISE_DATA(dataIN), where dataIN is a dataset
|
% Usage: [dataOUT,params] = NORMALISE_DATA(dataIN,params), where dataIN
|
||||||
% loaded via the LOAD_MATLAB or LOAD_BRUKER function.
|
% is a dataset loaded via the LOAD_MATLAB or LOAD_BRUKER function.
|
||||||
%
|
%
|
||||||
% 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.
|
% changes to the normalized data. The borders of the maximum region 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".
|
||||||
|
|
||||||
@ -91,6 +92,8 @@ uiwait(fig)
|
|||||||
%plotting result with time as x axis
|
%plotting result with time as x axis
|
||||||
plot(ax,dataOUT)
|
plot(ax,dataOUT)
|
||||||
axis tight
|
axis tight
|
||||||
|
%writing parameter
|
||||||
|
params.region_of_max = [left_point right_point];
|
||||||
end
|
end
|
||||||
|
|
||||||
function NormResetButtonPushed(src,event)
|
function NormResetButtonPushed(src,event)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user