How would I create a curve fit line and smooth the data on a surf plot

조회 수: 2 (최근 30일)
Andrew Stark
Andrew Stark 2022년 3월 17일
댓글: Andrew Stark 2022년 3월 20일
Hey yall, I am trying to smooth this data on a surf plot so this forms more of a curve while also putting a curve line line over it. How would I go about doing that? Thank you so much!

답변 (1개)

Walter Roberson
Walter Roberson 2022년 3월 17일
If you were to find() the locations of the non-zero pixels, then you could use boundary() on the coordinate pairs to get an outline of the area. With that information in place, you might consider something like John's interparc() from the FIle Exchange.
  댓글 수: 1
Andrew Stark
Andrew Stark 2022년 3월 20일
Thank you! Although I am still a little confused on what I would then do with the interparc data(It is currently a 100x2 double matrix). Would I go about turning these points back into matrix form?

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

카테고리

Help CenterFile Exchange에서 Interpolation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by