# HG changeset patch # User Jaroslav Hajek # Date 1267789206 -3600 # Node ID 180931276a52f3663a869937dcb9f8ae993ba034 # Parent a0b51ac0f88a3573049cc750a45909af6012e51e fix example in accumdim diff -r a0b51ac0f88a -r 180931276a52 scripts/general/accumdim.m --- a/scripts/general/accumdim.m Fri Mar 05 12:31:30 2010 +0100 +++ b/scripts/general/accumdim.m Fri Mar 05 12:40:06 2010 +0100 @@ -40,13 +40,12 @@ ## them are set to zero. Defining @var{fillval} to some other value allows ## these values to be defined. ## -## An example of the use of @code{accumarray} is: +## An example of the use of @code{accumdim} is: ## ## @example ## @group -## accumarray ([1,1,1;2,1,2;2,3,2;2,1,2;2,3,2], 101:105) -## @result{} ans(:,:,1) = [101, 0, 0; 0, 0, 0] -## ans(:,:,2) = [0, 0, 0; 206, 0, 208] +## accumdim ([1, 2, 1, 2, 1], [7,-10,4;-5,-12,8;-12,2,8;-10,9,-3;-5,-3,-13]) +## @result{} ans = [-10,-11,-1;-15,-3,5] ## @end group ## @end example ##