How to graph the outline of a curve
조회 수: 3 (최근 30일)
이전 댓글 표시
Hello.
I'm trying to plot (x,T) and want to just depict the upper limit curve. I tried to use other Matlab programs others have posted and the findpeaks equation, but I'm not getting much luck.
I want to plot this curve instead of filtering the data and distorting it in a way. Could anyone help me out please? Thank you for your time!
댓글 수: 0
채택된 답변
Mohammad Abouali
2014년 10월 19일
How does this work for you?
load Example
[pks,locs]=findpeaks(T,x,'MinPeakDistance',3);
plot(x,T);
hold on
plot(locs,pks,'r','LineWidth',3)
The redline is the upper bound.
댓글 수: 5
Mohammad Abouali
2014년 10월 20일
I am guessing the x was not supported in the former version of MATLAB. Not sure but I think even R2014a didn't support it.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Title에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!