Why do I get the warning "Error updating Patch on waterfall plot" and empty axes when running waterfall plot?

I create waterfall plot. When I use a certain dataset, I get the following warning and only see the empty axes on Figure.
>> waterfall(Data)
Warning: Error updating Patch.
Enforcing Delaunay constraints leads to unstable repeated constraint intersections.
This may be due to near coincident intersecting constraints or near duplicate points.

 Accepted Answer

As the warning the suggests, the points on the mesh grid are too close for triangulation to be done. There are two workarounds:
1. In the example below that downsamples the number of points, the data is thinned out every three columns.
>> waterfall(Data(:,1:3:end)));
2. Using the meshz function
>> meshz(Data,'MeshStyle','row')
(Reference)

More Answers (0)

Categories

Find more on 2-D and 3-D Plots in Help Center and File Exchange

Products

Release

R2021b

Tags

Community Treasure Hunt

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

Start Hunting!