Area under multiple peaks (Exponentially Modified Gaussians)

조회 수: 1 (최근 30일)
FW
FW 2017년 4월 3일
편집: KSSV 2017년 4월 4일
Hello, I have numerical data from an instrument (time vs. absorbance) consisting of three overlapping peaks (attached Excel). Is there a way to numerically integrate this data from time t1(0.45 s) to t2 (2 s) to find the total area under the three peaks. Once the total area is estimated, I want to make a single exponentially modified Gaussian of the same area as the real data. Could anyone assist in the functions to be used for such a situation in MATLAB? Amplitude=A; mu= mean; lambda= variable (0.1 to 20); standard deviation =s; EMG=A*s*lambda*sqrt(pi/2)*exp(0.5*(s*lambda)^2-lambda.*(t-mu)).*erfc((1/sqrt(2))*(s*lambda-((t-mu)/s)))
Thanks for your time.

답변 (1개)

KSSV
KSSV 2017년 4월 3일
편집: KSSV 2017년 4월 3일
[num,txt,raw] = xlsread('Fast Chromatogram.xls') ;
t = num(:,1) ;
a = num(:,2) ;
idx = t>=0.45 & t <= 2 ;
ti = t(idx) ;
ai = a(idx) ;
Int = trapz(ti,ai) ;
area(ti,ai)
  댓글 수: 2
FW
FW 2017년 4월 3일
Thanks you. Is it also possible to integrate the exponential modified Gaussian when the functional form is known?
Amplitude=A; mu= mean; lambda= variable (0.1 to 20); standard deviation =s; EMG=A*s*lambda*sqrt(pi/2)*exp(0.5*(s*lambda)^2-lambda.*(t-mu)).*erfc((1/sqrt(2))*(s*lambda-((t-mu)/s)))
Thanks once again.
KSSV
KSSV 2017년 4월 4일
편집: KSSV 2017년 4월 4일
Integrate w.r.t to what? Read about integral. This link would be helpful. https://in.mathworks.com/matlabcentral/answers/333388-integration-of-two-exponential-functions

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Descriptive Statistics에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by