How to limit the contour plot to specific points?

10 views (last 30 days)
How could I plot contour until the toppest scatter points?

Accepted Answer

Star Strider
Star Strider on 30 Oct 2018
See the documentation on Contours at One Level (link) in the contour (link) documentation.
Philippe Corner
Philippe Corner on 30 Oct 2018
Not sure why is not working. I had to create my contour using a matrix
Star Strider
Star Strider on 30 Oct 2018
I cannot determine the reason it is not working without your data and code. The first two arguments can be vectors or matrices, the third must be a matrix. The dimensions must match in any event.
Apparently your reshape call solved the problem.

Sign in to comment.

More Answers (0)


Find more on Contour Plots in Help Center and File Exchange


Community Treasure Hunt

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

Start Hunting!