Skip to content
Prev 248468 / 398503 Next

how could I choose subvector of a vector?

On Jan 26, 2011, at 2:48 PM, David Winsemius wrote:

            
I didn't notice at first that you wanted the values 1,2,5 ...(thought  
you wanted the 1st 2nd and 5th (obviously not correct with only a 4  
element vector)... so your values would be accessed with

v[1:3]
David Winsemius, MD
West Hartford, CT