[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Removing For Loops
From: |
CdeMills |
Subject: |
Re: Removing For Loops |
Date: |
Tue, 3 Aug 2010 05:39:32 -0700 (PDT) |
dirac wrote:
>
> Thanks for the reply,
>
> does the (:) bit mean apply thorough the whole vector?
>
>
the '(:)' is the colon operator, meaning: transform the vector/matrix to a
single vector with only one column. In the case of matrix, columns are
appended vertically. Using the colon operator in the illustrated code ensure
it will work whatever the orientation of the input vector, column-wise or
row-wise
Regards
Pascal
--
View this message in context:
http://octave.1599824.n4.nabble.com/Removing-For-Loops-tp2311651p2311776.html
Sent from the Octave - General mailing list archive at Nabble.com.