I am trying to access the following vector
size(start:step-size:end)
to determine the amount of entries that are created (on the fly). If I try to access the entries of
size(start:step-size:end)(2)
I get the following error :
Error: ()-indexing must appear last in an index expression.
However, if I first assign it to a variable, and then access the variable, I do not get the error :
a = size(start:step-size:end);
N = a(2)
Can't I accomplish this without having to store the vector created by the size function ?