just a quick (and probably stupid) question. I need to define an array whose unmber of dimensions is given by the user. The user should provide an inpt integer n and, depending on its value the array must change. For exemple:
if n=1 res = zeros(100)
if n=2 res = zeros(100,100)
if n=3 res = zeros(100,100,100)
Is there any simple way to do that (and then to Access the array elements) other tan using the if’s?
Best regards and thanks,