How to determine concavity point?
    조회 수: 7 (최근 30일)
  
       이전 댓글 표시
    
I have a bunch of data that when plotted look similar to this:

I want to know how I can use MATLAB to determine the corner or vertex or sometimes called concavity point (there are two in this plot that I have, one in the red data and one in the blue data)?
댓글 수: 0
채택된 답변
  John D'Errico
      
      
 2023년 5월 8일
        
      편집: John D'Errico
      
      
 2023년 5월 8일
  
      You give no data, so I'll need to make some up for an example.
x = linspace(-30,30,500);
y = cumsum((atan(x - 10)/2 + 1));
plot(x,y)
grid on
So a simple enough curve. Can we locate the point where there is a change? As long as the stride between points is constant, then a tool like findchangepts might help.
ipt = findchangepts(y,'Stat','linear')
[x(ipt),y(ipt)]
hold on
plot(x(ipt),y(ipt),'ro')
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
				Help Center 및 File Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


