How to plot a surf-plot without data extrapoation?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Philippe Corner
am 3 Dez. 2020
Bearbeitet: Walter Roberson
am 8 Aug. 2021
I would like to plot the same surf plot but without extrapolating on areas where are not scatter data.
The following script generates the attached figure.
The final plot should interpolate below the black line (only where data exists) like:
3 Kommentare
Akzeptierte Antwort
KSSV
am 4 Dez. 2020
You have the black line in hand.. make a closed polygon out of it and get the indices of the points lying inside and outside using inpolygon. From the data matrix, make the points lying outside NaN.
6 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Surface and Mesh Plots 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!