creating matrix using existing matrix
Ältere Kommentare anzeigen
given a matrix, how do you apply a function on every element to create a new matrix of the same size ?
1 Kommentar
Wan Ji
am 15 Aug. 2021
That's simple, e.g.
A = magic(5);
B = A.^2 + 3*A + 4;
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Creating and Concatenating Matrices finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!