moved Exp and Sys output to params

This commit is contained in:
sakul-45 2021-07-15 18:04:27 +02:00
parent 24891f8c15
commit 2aaf290295

View File

@ -1,14 +1,15 @@
function [Exp,Sys,params] = pre_simulation_TREPR(params)
function [params] = pre_simulation_TREPR(params)
%PRE_SIMULATION_TREPR allows manual fitting of parameters in GUI
%
% Usage: [Exp,Sys,params] = PRE_SIMULATION_TREPR(params), where params is
% Usage: [params] = PRE_SIMULATION_TREPR(params), where params is
% a struct, created by the load_bruker/matlab function and preprocessed
% by NORMALIZE_DATA, at least.
%
% The function will show a window with a plot of the normalized mean of
% maxima (calculated by NORMALIZE_DATA) and serveral input fields for
% different relevant paramters of TREPR fitting. By pressing "Apply" the
% simulation will be calculated and displayed.
% different relevant paramters of TREPR simulation.
% By pressing "Apply" the simulation will be calculated and displayed.
% The simulation parameters will be saved to the params struct.
%% creating UI
fig = figure;
@ -287,6 +288,9 @@ uiwait(fig)
bfield,spec_norm,'b','LineWidth',1.2)
legend('experimental','simulation')
axis tight
%write manual fit to params
params.Manual_Sys = Sys;
params.Triplett_pop = Exp.Temperature;
end
function PreSimDoneButtonPushed(src,event)