How to find the curvature of a surface plot?

조회 수: 15 (최근 30일)
aneps
aneps 2022년 6월 24일
댓글: Image Analyst 2022년 6월 25일
I made a surface plot that look like the screenshot below. I want to evaluate the curvature of the top region. The view showed here is a tilted one. If I put in view(0,90), it will look like the second picture attached.. That is the surface where I want to evaluate the curvature. The curve it too small as it is visible... But I want a way to quantify this curve. Is there any way like, put a line diagonally through the surface on view(0,90) and evaluate the curve?
surf(X,Y, Data)
colormap jet;
colorbar
view(0,90)

채택된 답변

Image Analyst
Image Analyst 2022년 6월 24일
Youi have to define where the "top part" is, particularly if the whole thing is curved, just to a greater or lesser degree. Is it rotationally symmetric? How about if you just thresholded at some level, like 95% of the max value and took a profile through that and then fit it to a quadratic function? Or if you wanted the sharpenss/curvature of the "edge" you can fit a cross section to a sigmoid function like the rate equation (demo attached).
  댓글 수: 2
aneps
aneps 2022년 6월 24일
top part, I mean, the surface plot view (0,90) as it is shown in the second screenshot. It is rotationally symmetric.
Thanks for the suggestion. I will learn the demo you attached and will try my best if I can do it. There is a problem for me in the demo you attached that I dont have machine learning toolbox. 'fitnlm' requires machine learning tool box. Will research if there is an alternative way. If you have any suggestion, that would be so helpful. Thank you.
Image Analyst
Image Analyst 2022년 6월 25일
I'm not sure you need to fit to a sigmoid shape anyway. Why can't you just take a profile after the surface has bent over and started to flatten out?
And you keep forgetting to attach your data, probably because you never read the posting guidelines :

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by