Unfolds multiway arrays along specified order.
- mwauf = unfoldmw(mwa,order)
Inputs are the multiway array to be unfolded mwa (class "double" or "dataset"), and the dimension (or mode) number along which to perform the unfolding order.
The output is the unfolded array mwauf (class "double" or "dataset" depending on the input class).
When working with DataSet Objects, unfoldmw will create label and include fields consistent with the input.