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

1 Ansicht (letzte 30 Tage)
Andrew Stark
Andrew Stark am 17 Mär. 2022
Kommentiert: Andrew Stark am 20 Mär. 2022
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!

Antworten (1)

Walter Roberson
Walter Roberson am 17 Mär. 2022
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 Kommentar
Andrew Stark
Andrew Stark am 20 Mär. 2022
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?

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Curve Fitting Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by