view general/numerical/incr.m @ 4:e44f49929e56

Adding reorganised general toolbox, now in several subdirectories.
author samer
date Sat, 12 Jan 2013 19:21:22 +0000
parents
children
line wrap: on
line source
function y=incr(y,varargin)
% incr - Increment element of array
%
% incr :: [[N]], 1..N-> [[N]].
% incr :: [[M,N]], 1..M, 1..N -> [[M,N]].
% incr :: [[L,M,N]], 1..L, 1..M, 1..N -> [[L,M,N]].
% etc..

	y(varargin{:})=y(varargin{:})+1;