When I divide two matrix of the same size (5x1) I get a 5x5 matrix where the first column has the answer and the next 4 are zeros.
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Jason Burke
le 10 Août 2021
Modifié(e) : Jason Burke
le 10 Août 2021
When I divide two matrix of the same size (5x1) I get a 5x5 matrix where the first column has the answer and the next 4 are zeros.
What am I doing wrong.
m1 = [2; 4; 5; 6; 9];
m2 = [1; 2; 5; 3; 3];
ans = m1 / m2;
0 commentaires
Réponse acceptée
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Multidimensional Arrays 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!