Curve start and end coordinates

조회 수: 1 (최근 30일)
ekagra gupta
ekagra gupta 2022년 8월 29일
편집: Image Analyst 2022년 8월 30일
Hello,
I have a curve
I want to find the starting and end coordinates of these gaussian curves.
It would be great if you guys could help!
The required data is attached in this question itself ("req_data.mat").
Thank you!

답변 (1개)

Matt J
Matt J 2022년 8월 29일
편집: Matt J 2022년 8월 29일
Gaussian curves are infinite in length., so it isn't clear what your criterion would be for where they start/stop. However, a good place to start would probably be to use the Curve Fitting Toolbox to fit a three-term Gaussian model ( 'gauss3' ).
s=load('req_data.mat').drt_data;
x=s.tau;
y=s.gamma_tau*1e4;
a=[1.5,0.5,6];
b=[-2,-0.3,1.4];
c=[1,0.5,1];
x0=[a;b;c];
ft=fit(x,y,'gauss3','StartPoint',x0(:).');
plot(ft,x,y)
  댓글 수: 5
ekagra gupta
ekagra gupta 2022년 8월 30일
Thank you for clarifying!
Is it possible to calculate area of the 3 curves individually? (note: I still do not know the bounds for integral)
Image Analyst
Image Analyst 2022년 8월 30일
편집: Image Analyst 2022년 8월 30일
The area in the tails is probably insignificant, therefore simply use the formula for the area of a Gaussian:
The area under a Gaussian curve equals Amplitude * StdDev / 0.3989
From Matt's code you know the 3 amplitudes and 3 standard deviations. It should be accurate enough for your purposes.

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

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by