Skip to content

Commit

Permalink
Corrections in the comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Tetane authored Jul 24, 2019
1 parent e9bf56e commit f741322
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions matfun.m
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit f741322

Please sign in to comment.