creating matrix using existing matrix
Afficher commentaires plus anciens
given a matrix, how do you apply a function on every element to create a new matrix of the same size ?
1 commentaire
Wan Ji
le 15 Août 2021
That's simple, e.g.
A = magic(5);
B = A.^2 + 3*A + 4;
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Creating and Concatenating Matrices dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!