I have a 1x600 (rowsxcolumns) vector, say "A", where i want to access the following columns of A:
166   (column value is 2)
256   (column value is 5)
346   (column value is 8)
436   (column value is 10)
526   (column value is 13)
After extracting out these columns, I want to add their respective values:
sum = 2 + 5 +8 + 10 + 13
Can any one help me out on how to first extract the columns , and then sum up their values? Thanks!
 
     
    