MatFun
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
인용 양식
Stéphane Roussel (2024). MatFun (https://github.com/Tetane/MatFun), GitHub. 검색됨 .
MATLAB 릴리스 호환 정보
플랫폼 호환성
Windows macOS Linux카테고리
- MATLAB > Mathematics > Linear Algebra >
태그
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!GitHub 디폴트 브랜치를 사용하는 버전은 다운로드할 수 없음
버전 | 게시됨 | 릴리스 정보 | |
---|---|---|---|
1.0.1 | New image |
|
|
1.0.0 |
|