How to fucntions like plot f(x,y) = 2 when 0<=x<=1 and 0<=y<=x

1 次查看(过去 30 天)
I'm struggling to do so. Any help will be appriciated.

采纳的回答

Christopher Creutzig
If the region to plot over were a simple 0 ≤ x ≤ 1 and 0 ≤ y ≤ 1, you could use fimplicit(f(x,y) - 2, [0 1 0 1]). I don't think there is a good way of restricting the plotting domain to the triangle you are looking for, though. You could just cover the upper triangle with a fill([0 1 1], [1 0 1], [1 1 1]) call, I guess …

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Graphics Performance 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by