samer@4: function X=flatten(X); samer@4: % flatten - convert array into column vector samer@4: % samer@4: % flatten :: [[size]]->[[prod(size)]] samer@4: samer@4: X=reshape(X,numel(X),1);