Filled countour plot for a specific value

Hello sir
Please help to create a filled contour plot for a specific value (Fig. b) extracted from original contour plot (Fig. a) as shown in following images.
Thank you
Jaydeep
(a)
(b)

 Accepted Answer

See this example in the documentation, which just displays the contour at z=2: https://www.mathworks.com/help/matlab/ref/contourf.html#mw_39eae52b-d6d9-4fe0-ab4a-829511beab1d
[X,Y,Z] = peaks;
contourf(X,Y,Z,[2 2],'ShowText','on')

2 Comments

Dear sir It works for me. Thank you for reply Jaydeep
Hello @Jaydeep Ravalji, if this answer solved your problem, please consider accepting the answer.
Accepting the answer indicates that your problem has been solved (which can be helpful to other people in future) and it awards the volunteer with reputation points for helping you.
You can accept only 1 answer for a question, but you can vote for as many answers as you want. Voting an answer also provides reputation points.

Sign in to comment.

More Answers (0)

Categories

Find more on 2-D and 3-D 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!