Réponse acceptée

Star Strider
Star Strider le 7 Déc 2017

1 vote

Try this:
z = x .* y;
You need to do ‘element-wise’ multiplication, and adding the ‘dot operator’, changing (*) to (.*). will do this.
See the documentation on Array vs. Matrix Operations (link) for details.

Plus de réponses (0)

Catégories

En savoir plus sur Line Plots dans Centre d'aide et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by