You can't find the number of rows here because Data(i) actually is an invalid object, just good enough for display but nothing more.
It may look like a vector but it isn't.
Try to assign it a variable and you will see that you get an error.
![]()
What you do can be called a misuse of a range variable because ranges simply are not made for this (even though sometimes it might be convenient).
You may use a utility function which extracts every N-th value from a vector starting with its first value.
So you are dealing with vectors throughout and can use the "rows" function etc.

While I consider it less clear, you may also use an approach similar to the one you used with your range i:

If you insist on using your range i you could do it that way

but I definitely don't like this approach.
I also don't like the syntax "Data(i)" to access vector elements as it look likes a function but isn't. I prefer the "classic" vector/matrix index.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.


