Matrix division does not work because of matrix dimensions
    3 vues (au cours des 30 derniers jours)
  
       Afficher commentaires plus anciens
    
    Hadi Ghahremannezhad
 le 21 Nov 2019
  
    
    
    
    
    Commenté : Ridwan Alam
      
 le 21 Nov 2019
            I have two matrices:
A: 5 by 5
B: 5 by 3
How can I claculate matrix division as B divided by A?
I have used: 
B / A
B \ A
B ./ A
But all of them show this message:
"Matrix dimensions must agree."
0 commentaires
Réponse acceptée
  Ridwan Alam
      
 le 21 Nov 2019
        
      Modifié(e) : Ridwan Alam
      
 le 21 Nov 2019
  
      B\A gives a warning, but not an error.
B\A means inv(B)*A. But your B is not square, so inv(B) won't work.
And, you are not looking for A\B?
4 commentaires
Plus de réponses (0)
Voir également
Catégories
				En savoir plus sur Creating and Concatenating Matrices 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!