creating matrix using existing matrix
古いコメントを表示
given a matrix, how do you apply a function on every element to create a new matrix of the same size ?
1 件のコメント
Wan Ji
2021 年 8 月 15 日
That's simple, e.g.
A = magic(5);
B = A.^2 + 3*A + 4;
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Creating and Concatenating Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!