Global Index (short | long) | Local contents | Local Index (short | long)
[out, dims] = go2d(in);
[out, dims] = go2d(in); out = 2 dimenisonal matrix, keeping the first dim, and reshaping by the product of the remaining dims. dims = dimensions of matrix 'in'
function [out, dims] = go2d(in); dims = size(in); len = length(dims); out = reshape(in, dims(1), prod(dims(2:len)));