Effacer les filtres
Effacer les filtres

Dividing a number by a column matrix in Matlab

2 vues (au cours des 30 derniers jours)
Duong Cao
Duong Cao le 8 Mar 2018
For example if I were to type this in matlab: >> 1/[1, 2 ,3] There would be an error: >> Error using / Matrix dimensions must agree.
But if I were to type this in Matlab >> 1/[1; 2; 3] The answer would be: [0 0 0.3333]
Why is Matlab doing this ?

Réponses (0)

Catégories

En savoir plus sur Matrix Indexing 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!

Translated by