I fail to see the worth of this function.
That being said I would prefer that the 'cube' dimension be optionally given as input, so
reshape2cube(vector,m)
would transform vector with n^m elements into an m dimension array.
I am with Darren. Maybe a generalization would be more useful:
A = 1:5^2;
reshape2pow(A,2)
A = 1:5^3;
reshape2pow(A,3)
A = 1:5^4;
reshape2pow(A,4)
....
I fail to see the worth of this function.
That being said I would prefer that the 'cube' dimension be optionally given as input, so
reshape2cube(vector,m)
would transform vector with n^m elements into an m dimension array.
Comment only