How to find the x value corresponding to the half of a curve?
이전 댓글 표시
Can anyone help out with the Matlab codes necessary to determine the a, b (y axis) and c (x axis) values in the following graph? Thanks.
답변 (1개)
Andrei Bobrov
2013년 11월 21일
S - your signal; time1 - time.
[a,ia] = max(S);
l1 = [false;diff(S(1:ia)) < 1];
ib = find(l1,1,'last');
b = S(ib);
Csig = (a+b)/2;
Sab = S(ib:ia);
t = time1(ib:ia);
ii = find(Sab < Csig,1,'last');
C = interp1(Sab([ii,ii+1]),t([ii,ii+1]),Csig);
카테고리
도움말 센터 및 File Exchange에서 Curve Fitting Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!