How can I fit a curve at the bottom of the plot below?
조회 수: 2 (최근 30일)
이전 댓글 표시
I have the attached dataset and I want to fit a curve at the bottom of the curve. See the attached photo. The original data is in blue and the fit is that in black.

Sample data is attached. Thank you in advance
댓글 수: 0
채택된 답변
Matt J
2023년 7월 4일
편집: Matt J
2023년 7월 4일
댓글 수: 5
Matt J
2023년 7월 4일
Ok, but what help do you still require? As you can see below, the recommendations from my last comment work for y.txt as well.
[~,y]=readvars('y.txt');
x=(1:numel(y))';
S=[1,0.7,0];
for s=S
k=boundary(x([1:end,1]), y([1:end,1]),s);
k=k(diff(k)>0);
plot(x(k),y(k),'-.');hold on
end;
legend("s="+S); xlim([100,400])
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Interpolation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



