I have a size(x) function that gives answer: 1 23 (x is a vector with 23 points). I can take the second value like this
k=size(x) k(2)
Is there a more immediate way to do this? in a single command, something like.. size(x)(2) ?
size;
k=size(x) k(2)
Best Answer