How to plot sin(xy)=sin(x)+sin(y)?
Mostra commenti meno recenti
It is easy to plot y=sin(x), but how to sin(xy)=sin(x)+sin(y)?
1 Commento
chethan
il 2 Mag 2025
fimplicit(@(x,y) sin(x.*y) - sin(x) - sin(y))
Risposta accettata
Più risposte (1)
"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
Categorie
Scopri di più su Line Plots in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

