vec2mat_sol

Transforms the solution matrix for a vector-valued IVP into the solution array for its corresponding matrix-valued IVP.

Back to IVP Solver Toolbox Contents.

Contents

Syntax

M = vec2mat_sol(y,p)

Description

M = vec2mat_sol(y,p) transforms the solution matrix, $[\mathbf{y}]\in\mathrm{R}^{(N+1)\times pr}$ (y in MATLAB), for the vector-valued IVP into the solution array, $[\mathbf{M}]\in\mathrm{R}^{p\times r\times (N+1)}$ (M in MATLAB) for the corresponding matrix-valued IVP. p specifies the number of rows of M.

Input/Output Parameters

Variable Symbol Description Format
Input y solution matrix (N+1)×pr
double
p number of rows of state matrix 1×1
double
Output M solution array p×r×(N+1)
double

Note

See also

mat2vec_E | mat2vec_IC | mat2vec_ODE