[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

index in statistics/base/center.m ???

From: CdeMills
Subject: index in statistics/base/center.m ???
Date: Mon, 22 Nov 2010 12:56:13 -0800 (PST)


The computation in said file goes around:
      mx = sum (x, dim) / n;
      idx(1:ndims (x)) = {':'}; 
      idx{dim} = ones (1, n);
      retval = x - mx(idx{:});

could someone point me to the documentation of the logic behind this index
access ? The purpose is to reconstruct a matrix with the same size as x ?
Can it be directly translated in terms of the S matrix used in subsref and
subsagn ?


View this message in context:
Sent from the Octave - General mailing list archive at

reply via email to

[Prev in Thread] Current Thread [Next in Thread]