Skip to content
Snippets Groups Projects
Commit b61d4434 authored by Yves Gouriou's avatar Yves Gouriou
Browse files

Ajout de cette fonction

parent c4bd8b4f
No related branches found
No related tags found
No related merge requests found
function PARA = getParaCorModule( hMainFig )
%
% Get the parameter that will be ADJUSTED (corrected by comparison to samples)
% We need to know if a calibration has been performed on this parameter to
% apply the correction on the _CAL variable rather than on the raw varaible
%
% Input
% hMainFig ........ Handle to the main GUI : TSGQC
%
% Output
% PARA ............ Cell array
% PARA{1} contains the characters (SSP, SSJT, SSTP)
% PARA{2} contains either the characters (SSPS, SSJT, SSTP)
% or (SSPS_CAL, SSJT_CAL, SSTP_CAL) if they exist
% Get the tsg structure
% ---------------------
tsg = getappdata(hMainFig, 'tsg_data');
% Build the Cell array containing the parameters
% Test if _CAL variable exist
% ---------------------------
if ~isempty( tsg.([tsg.plot.parameter{1} '_CAL']) )
PARA = {tsg.plot.parameter{1}, [tsg.plot.parameter{1} '_CAL']};
else
PARA = {tsg.plot.parameter{1}, tsg.plot.parameter{1}};
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment