How to plot sin(xy)=sin(x)+sin(y)?
10 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Simple Life
le 22 Fév 2022
Réponse apportée : Carlos Guerrero García
le 22 Nov 2022
It is easy to plot y=sin(x), but how to sin(xy)=sin(x)+sin(y)?
0 commentaires
Réponse acceptée
John D'Errico
le 22 Fév 2022
This is called an implicit function. Use fimplicit. Again, easy.
fimplicit(@(x,y) sin(x.*y) - sin(x) - sin(y))
Plus de réponses (1)
Carlos Guerrero García
le 22 Nov 2022
"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
0 commentaires
Voir également
Catégories
En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!