function [v] = MatrixToVector( X ) % X is a 2D matrix. % Returns v as the concatenated sequence of rows of X. % % 27 Jan 2009 - D.Bozarth, SSU Engineering Science % v = []; nRows = size( X, 1 ); for j = 1:nRows v = [v X(j, :)]; end % % end script