How to add black isolines for f(x,y) = -1, 0, 1
5 views (last 30 days)
Show older comments
Hi ,
I have f(x,y) and I want to add black isolines for f(x,y) = -1, 0, 1. How can I do it?
Thanks
0 Comments
Answers (1)
Steven Lord
on 15 Sep 2021
Use the contour or contour3 functions.
3 Comments
Steven Lord
on 15 Sep 2021
[x, y, z] = peaks;
surf(x, y, z)
shading interp
hold on
contour3(x, y, z, [-1, 0, 1], 'k')
See Also
Categories
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!