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!