
Re: How to retrieve the given column of the data of arbitrary size?
Posted:
Nov 14, 2012 10:15 AM


"Jan Simon" <matlab.THIS_YEAR@nMINUSsimon.de> wrote in message news:k7thlr$qm2$1@newscl01ah.mathworks.com... > Dear Bruno, >> ind = {':', 3, ':', ':' }; >> A3=squeeze(A(ind{:})) > > I like this method. It is used in Matlab's toolbox functions, but is it > documented also?
I don't believe it's explicitly documented. This is about as close as the documentation gets to describing that behavior.
http://www.mathworks.com/help/matlab/matlab_oop/indexedreferenceandassignment.html#br09e971
" A colon used as an index is passed in the cell array as the string ':'. "
 Steve Lord slord@mathworks.com To contact Technical Support use the Contact Us link on http://www.mathworks.com

