Squaring a matrix and how the results matters
2 views (last 30 days)
Show older comments
What is the absolute right way to square a metrix: say, A = rand (3,1) and I want absolute value
- abs (A' *A)
- abs (A)^2
- abs ((A).^2)
- abs (A .*A)
- abs(A*A)
I know sounds sily. just try to be sure. Thanks.
0 Comments
Answers (1)
See Also
Categories
Find more on Multidimensional Arrays in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!