Matrix division does not work because of matrix dimensions
    3 visualizzazioni (ultimi 30 giorni)
  
       Mostra commenti meno recenti
    
    Hadi Ghahremannezhad
 il 21 Nov 2019
  
    
    
    
    
    Commentato: Ridwan Alam
      
 il 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 Commenti
Risposta accettata
  Ridwan Alam
      
 il 21 Nov 2019
        
      Modificato: Ridwan Alam
      
 il 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 Commenti
Più risposte (0)
Vedere anche
Categorie
				Scopri di più su Creating and Concatenating Matrices in Help Center e File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

