How can i draw contours of a function of the form f(x)=X1^2+X2^2?
1 次查看(过去 30 天)
显示 更早的评论
contour(X1,X2,f) doesn't draw contours.
0 个评论
回答(1 个)
Honglei Chen
2018-9-24
Are you looking for something like this?
ezcontour(@(x1,x2)x1.^2+x2.^2)
HTH
2 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Contour Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!