How can i 3d plot z=x*y
11 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Gabriel Salazar
le 7 Déc 2017
Réponse apportée : Star Strider
le 7 Déc 2017
I tried this but didn't work [x,y]=meshgrid(-5:5) z=x*y Plot3(x,y,z)
0 commentaires
Réponse acceptée
Star Strider
le 7 Déc 2017
Try this:
z = x .* y;
You need to do ‘element-wise’ multiplication, and adding the ‘dot operator’, changing (*) to (.*). will do this.
0 commentaires
Plus de réponses (0)
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!