Finished objectifying #8
| @ -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 | %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 | %   a struct, created by the load_bruker/matlab function and preprocessed | ||||||
| %   by NORMALIZE_DATA, at least. | %   by NORMALIZE_DATA, at least. | ||||||
| % | % | ||||||
| %   The function will show a window with a plot of the normalized mean of | %   The function will show a window with a plot of the normalized mean of | ||||||
| %   maxima (calculated by NORMALIZE_DATA) and serveral input fields for | %   maxima (calculated by NORMALIZE_DATA) and serveral input fields for | ||||||
| %   different relevant paramters of TREPR fitting. By pressing "Apply" the | %   different relevant paramters of TREPR simulation. | ||||||
| %   simulation will be calculated and displayed. | %   By pressing "Apply" the simulation will be calculated and displayed. | ||||||
|  | %   The simulation parameters will be saved to the params struct. | ||||||
| 
 | 
 | ||||||
| %% creating UI | %% creating UI | ||||||
| fig = figure; | fig = figure; | ||||||
| @ -287,6 +288,9 @@ uiwait(fig) | |||||||
|              bfield,spec_norm,'b','LineWidth',1.2) |              bfield,spec_norm,'b','LineWidth',1.2) | ||||||
|         legend('experimental','simulation') |         legend('experimental','simulation') | ||||||
|         axis tight |         axis tight | ||||||
|  |         %write manual fit to params | ||||||
|  |         params.Manual_Sys = Sys; | ||||||
|  |         params.Triplett_pop = Exp.Temperature; | ||||||
|     end |     end | ||||||
| 
 | 
 | ||||||
|     function PreSimDoneButtonPushed(src,event) |     function PreSimDoneButtonPushed(src,event) | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user