Domain sketch for multiple variables function

조회 수: 4 (최근 30일)
Nhi Nguyen
Nhi Nguyen 2021년 7월 7일
답변: Walter Roberson 2021년 7월 7일
How do I sketch the domain of the function f(x,y) = ln(9 - x^2 - 9y^2)?
This is for my exercise so I really need some help. Thanks in advanced!

채택된 답변

Walter Roberson
Walter Roberson 2021년 7월 7일
For example
expr = @(x,y) -x.^2 - 2.*x.*y - 7.*y.^2 + 11.*y + 1;
[X,Y] = meshgrid(linspace(-5,5,200));
eZ = expr(X,Y);
eZ(eZ<=0) = nan;
Z = log(eZ);
surf(X, Y, Z, 'edgecolor', 'none')
xlabel('x'); ylabel('y')
[r,c] = find(~isnan(eZ),1)
r = 124
c = 30
[X(r,c), Y(r,c), eZ(r,c), Z(r,c)]
ans = 1×4
-3.5427 1.1809 0.0446 -3.1101

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

제품


릴리스

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by