Hi to all,
I am using a dataset object (from the statistics toolbox), with four variables, three of which are nominal and contain the characters of the data, and the fourth is a double containing the actual data.
My question is: how do I turn the data into a 3-D matrix, having one dimension for each variable but the one containing the data? Or more generally, how do I turn an N+1 columns dataset into a corresponding N-dimensional matrix with each dimension of the matrix having length equal to the number of levels of the variable it represents?
Thank you very much all the help you can provide