vec2mat_sol
Transforms the solution matrix for a vectorvalued IVP into the solution array for its corresponding matrixvalued IVP.
Back to IVP Solver Toolbox Contents.
Contents
Syntax
M = vec2mat_sol(y,p)
Description
M = vec2mat_sol(y,p) transforms the solution matrix, (y in MATLAB), for the vectorvalued IVP into the solution array, (M in MATLAB) for the corresponding matrixvalued 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
 The nth page of stores the state matrix (i.e. the solution) corresponding to the nth time in .