# mat2vec_IC

Transforms the initial condition for a matrix-valued IVP into the initial condition for its corresponding vector-valued IVP.

## Syntax

y0 = mat2vec_IC(M0)


## Description

y0 = mat2vec_IC(M0) transforms the initial condition for a matrix-valued IVP into the initial condition for its corresponding vector-valued IVP.

## Input/Output Parameters

 Variable Symbol Description Format Input M0 $\inline&space;\mathbf{M}_{0}$ initial condition for matrix-valued IVP p×rdouble Output y0 $\mathbf{y}_{0}$ initial condition for corresponding vector-valued IVP pr×1double