If you want to know the size of a vector you would use items.size();. If you want to know the max amount of elements that you can have in the vector before it is resized than you would use items.capacity();.
NathanOliver
Posting Virtuoso
1,515 posts since Apr 2009
Reputation Points: 281
Solved Threads: 277
Skill Endorsements: 3
Depends on how blocks is ultimately defined.
Depends on what length(blocks) returns.
Depends on what size(blocks) returns.
Depends on what sum(size(blocks)) returns.
There are a lot of possibilities on each of the above. Unless there's a Matlab user that can answer these questions, we'd be just guessing.
WaltP
Posting Sage w/ dash of thyme
11,404 posts since May 2006
Reputation Points: 3,421
Solved Threads: 1,055
Skill Endorsements: 37