Skip to content

Commit

Permalink
fix doc
Browse files Browse the repository at this point in the history
  • Loading branch information
sth4nth committed Mar 28, 2017
1 parent 88a9ee4 commit fa8d013
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions common/slice.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
function B = slice(A, dim, index)
% slice(A,2,index) = A(:,index,:)
% Written by Mo Chen ([email protected]).
sz = size(A);
sz(dim) = numel(index);
IDX = cell(1,ndims(A));
Expand Down
3 changes: 2 additions & 1 deletion common/sub.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
function B = sub(A, varargin)
% submat(A,i,j,k) = A(i;j;k)
% sub(A,i,j,k) = A(i;j;k)
% Written by Mo Chen ([email protected]).
assert(ndims(A)==numel(varargin));
sz = cellfun(@numel,varargin);
IDX = cell(1,ndims(A));
Expand Down

0 comments on commit fa8d013

Please sign in to comment.