📄 lifefitascii_single.m
字号:
% Program for the Calculation of Fluorescence Lifetimes
% Dr. Joshua B. Edel
%%%%%%%%%%%%%%%% Initialize
clear all;
close all;
warning off;
set(0, 'defaultfigurecolor', [ 1, 1, 1 ]);
%%%%%%%%%%%%%%%%%%%%% Parameters %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
file = 'C:\Documents and Settings\Meller\Desktop\J-Lfe ASCII\sample.txt';
InstCurveNum = 1; % Instrument response column number
DataCurveNum = 3; % decay column number
TimePerChan = 0.0061035157; % time per channel in ns
Amp = [0.01 0.02 0.01]; % initial amplitude guess
Life = [1 2 5]; % initial lifetime guess
components = 2; % max of 3 components
%%%%%%%%%%%%%%%%%%%% Boundary conditions
[StartTime, EndTime,lb,ub] = Boundary(file,InstCurveNum,DataCurveNum);
%%%%%%%%%%%%%%%%%%%% Fitting routine
[ExportData,FittedDecays] = MainRoutine(file,StartTime,EndTime,Amp,Life,InstCurveNum,DataCurveNum,components,lb,ub,TimePerChan);
%%%%%%%%%%%%%%%%%%%% Instructions
% 1) hello
%
% 2) To deconvolve IRF from decay a tab delim text file is needed with
% columns containing Instrument Response and Decay. a sample file is given
% called sample.txt
%
% 3) All columns must have the same length.
%
% 4) Adjust inital lifetime, amplitude,boundary conditions, channels, etc....
% Boundary conditions can be changed in the "Boundary.m" file
% 5) The inital Amp and Life vectors should have length of 3 hence for 1
% component fit only change the 1st value etc....
%
% 6) Run program. A figure will be displayed containing the IRF and decay.
% select the area of interest by drawing a box with your mouse around the area that you
% want analyzed
% 7) Analysis and fit output is summarized in text files in the same folder as the decay file
%
% 8) For further help please contact josh at edel@rowland.harvard.edu
%
% 9) This program is freeware however, if this program is used towards a publication please mention that J-life was used in an appropriate section of the paper.
%
% 10) Enjoy the program.
%
%
% Dr. Joshua B. Edel
% Rowland Institute at Harvard
% Harvard University
% 100 Edwin H. Land Blvd.
% Cambridge, MA 02142
%
% Tel: (617) 497-4666
% Fax: (617) 497-4627
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -