creating matrix using existing matrix
Mostrar comentarios más antiguos
given a matrix, how do you apply a function on every element to create a new matrix of the same size ?
1 comentario
Wan Ji
el 15 de Ag. de 2021
That's simple, e.g.
A = magic(5);
B = A.^2 + 3*A + 4;
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Creating and Concatenating Matrices en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!