Wednesday 2 October 2013

Matlab: How to choose the first element of each cell-array in a larger cell-array?

Matlab: How to choose the first element of each cell-array in a larger
cell-array?

Input
hhh={{1,11},{2,22},{3,33},{4,44}}
Intended output
11 22 33 44
P.s. hhh{1}{2}, hhh{2}{2}, hhh{3}{2} and hhh{4}{2} returns the right
output but I am trying to find how to do it like hhh{:}{2}.

No comments:

Post a Comment