help-octave
[Top][All Lists]
Advanced

[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)

Hello,

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 ?

TIA

Pascal
-- 
View this message in context: 
http://octave.1599824.n4.nabble.com/index-in-statistics-base-center-m-tp3054431p3054431.html
Sent from the Octave - General mailing list archive at Nabble.com.


reply via email to

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