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

  • Context: MATLAB 
  • Thread starter Thread starter Physics_rocks
  • Start date Start date
  • Tags Tags
    Matrices
Click For Summary
SUMMARY

The discussion clarifies the differences between matrix operations in MATLAB, specifically addressing the operations A/C and A\C. A/C is equivalent to A multiplied by the inverse of C (A*inv(C)), while A\C represents the multiplication of the inverse of A with C (inv(A)*C). The operator A./A signifies element-wise division, where the dot (.) indicates that the operation applies to each corresponding element of the matrices. The confusion arises from the misuse of the operator A., which is not recognized in MATLAB.

PREREQUISITES
  • Understanding of matrix operations in MATLAB
  • Familiarity with matrix inversion concepts
  • Knowledge of element-wise operations in MATLAB
  • Basic proficiency in MATLAB syntax and commands
NEXT STEPS
  • Explore MATLAB documentation on matrix operations
  • Learn about matrix inversion and its applications in MATLAB
  • Study element-wise operations and their syntax in MATLAB
  • Practice using the MATLAB command window for matrix calculations
USEFUL FOR

Students, engineers, and researchers working with MATLAB who need to understand matrix operations and their implications in computational tasks.

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.
 

Similar threads

  • · Replies 10 ·
Replies
10
Views
3K
Replies
7
Views
2K
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
5K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 2 ·
Replies
2
Views
4K
Replies
1
Views
3K