필터 지우기
필터 지우기

How to plot sin(xy)=sin(x)+sin(y)?

조회 수: 10 (최근 30일)
Simple Life
Simple Life 2022년 2월 22일
답변: Carlos Guerrero García 2022년 11월 22일
It is easy to plot y=sin(x), but how to sin(xy)=sin(x)+sin(y)?

채택된 답변

John D'Errico
John D'Errico 2022년 2월 22일
This is called an implicit function. Use fimplicit. Again, easy.
fimplicit(@(x,y) sin(x.*y) - sin(x) - sin(y))

추가 답변 (1개)

Carlos Guerrero García
Carlos Guerrero García 2022년 11월 22일
"contour" command provides another way to plot an implicit function defined by an expression like F(x,y)=0. For the implicit function in this question, the following code can also be used:
[x,y]=meshgrid(-5:0.01:5); % Establising the canvas...
contour(x,y,sin(x.*y)-sin(x)-sin(y),[0 0]) % ...for plotting sin(xy)-sin(x)-sin(y)=0

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

태그

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by