Squaring a matrix and how the results matters

2 ビュー (過去 30 日間)
az
az 2018 年 11 月 27 日
コメント済み: az 2018 年 11 月 27 日
What is the absolute right way to square a metrix: say, A = rand (3,1) and I want absolute value
  1. abs (A' *A)
  2. abs (A)^2
  3. abs ((A).^2)
  4. abs (A .*A)
  5. abs(A*A)
I know sounds sily. just try to be sure. Thanks.

回答 (1 件)

madhan ravi
madhan ravi 2018 年 11 月 27 日
  1 件のコメント
az
az 2018 年 11 月 27 日
Thanks Ravi, I have checked those links. Now I just want to sure what it means in matlab code to square any matrix? Is it just write the matrix side by side, or transpose first one then write side by side and multiply.
If it is a matrix not array.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeMultidimensional Arrays についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by