I need to use the dimension of a certain array, to use it as a bounder in a loop afterwards. The problem is that I get a list, when write :
Dimensions[ai]= {2}
aiod = Table[ai[[i]] - 1, {i, 1, Dimensions[ai], 1}]
and it does not work. I need to get "2" instead of {2}.
Part, as in{2}[[1]]. – b.gatessucks Feb 25 at 10:01Length, if the first (outermost) dimension is what you want. – Verbeia♦ Feb 25 at 10:12Dimensions[ai]={2}intended to do? – Rojo Feb 25 at 12:14