From f7413223bd01098d9d4f3e4c1b0049012e370aef Mon Sep 17 00:00:00 2001 From: Tetane Date: Wed, 24 Jul 2019 18:31:20 +0200 Subject: [PATCH] Corrections in the comments --- matfun.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/matfun.m b/matfun.m index c8bb852..dcc70fa 100644 --- a/matfun.m +++ b/matfun.m @@ -1,14 +1,14 @@ function funmat = matfun(fun, mat, dim) -%MATFUN Apply function to the specified dimensions of the matrix +%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