Understanding Matrix Operations: A/C vs. A\C, A./A, and More in MATLAB

  • Topic: MATLAB 
  • Thread starter Thread starter Physics_rocks
  • Start date Start date
  • Tags Tags
    Matrices
Join the discussion
Registration is free. Start your own thread to ask a follow-up.
1 reply · 2K views
Physics_rocks
Messages
12
Reaction score
0
Hi all ,

I'd like your help with some actions taken with matrices .
if A=[1 2 3 ; 4 5 6 ; 7 8 9 ] and C=[1 3 -1 ; 2 4 0 ; 6 0 1 ]

what is the difference between A/C and A\C ?
what does it mean A./A ? what is A. ? MATLAB doesn't give me an answer when I write A.

thanx
 
Physics news on Phys.org
Think of A/C and A\C as more efficient ways of calculating A*inv(C) and inv(A)*C, respectively.

A. doesn't mean anything. It's ./ that means something. ./ means divide element by element. Adding the . to an operator means to do it element by element. For example A*A is matrix multiplication while A.*A means just multiply the corresponding elements.