f(x,y)<=0
조회 수: 19 (최근 30일)
이전 댓글 표시
How can I plot the Domain of f(x,y)<=0 in Oxy?
Can someone give me advices?
Thanks.
댓글 수: 0
답변 (1개)
John D'Errico
2020년 6월 29일
I can see several ways off the top of my head.
Consider some arbitrary implicit function.
fun = @(x,y) x.^2 + y.^3 - 3;
Easy enough to plot the region boundary, so the locus of where it equals zero.
fimplicit(fun,[-4,4],-3,2])
grid
But which half of that domain is the negative part? pcolor should work.
[X,Y] = meshgrid(linspace(-4,4,500),linspace(-3,2,500));
Fxy = fun(X,Y);
H = pcolor(X,Y,double(Fxy < 0);
H.EdgeColor = 'none';
colormap([1 1 1;.1 .6 .7])
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Classical Control Design에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!