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!