What is the difference between a^3 and a.^3 if a is a matrix?
5 ビュー (過去 30 日間)
古いコメントを表示
C = magic(3)
D = C.^3;
D_max = max(D(:));
E = C^3
0 件のコメント
採用された回答
James Tursa
2022 年 10 月 29 日
編集済み: James Tursa
2022 年 10 月 29 日
E = C^3 is a matrix power, equivalent to E = C*C*C, where these are all matrix multiplies.
D = C.^3 is element-wise power, where D(1,1) = C(1,1)*C(1,1)*C(1,1), etc.
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!