MatFun

Applies a function to the specified dimensions of a matrix
50 descargas
Actualizado 15 jul 2019

MATFUN Applies function to the specified dimensions of the matrix
A = MATFUN(FUN, MAT, DIM) applies the function specified by FUN to the dimensions DIM of the matrix MAT.
DIM is vector which maximum size is 3.

Example1:
A = rand(3,1000,1000);
% We want to compute the norm of the vector along the first dimension.
B = matfun(@norm, A, 1);
% B is a 1000x1000 matrix containing the norms of the vectors.

Example2:
A = rand(4,4,1000);
% We want apply the inverse function to all the 4x4 matrices
B = matfun(@inv, A, [1,2]);
% B is a 4x4x1000 matrix

Citar como

Stéphane Roussel (2024). MatFun (https://github.com/Tetane/MatFun), GitHub. Recuperado .

Compatibilidad con la versión de MATLAB
Se creó con R2018b
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS Linux
Categorías
Más información sobre Linear Algebra en Help Center y MATLAB Answers.
Etiquetas Añadir etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

No se pueden descargar versiones que utilicen la rama predeterminada de GitHub

Versión Publicado Notas de la versión
1.0.1

New image

1.0.0

Para consultar o notificar algún problema sobre este complemento de GitHub, visite el repositorio de GitHub.
Para consultar o notificar algún problema sobre este complemento de GitHub, visite el repositorio de GitHub.