mat2vec_E

Transforms the event function for a matrix-valued IVP into the event function for its corresponding vector-valued IVP.

Back to IVP Solver Toolbox Contents.

Contents

Syntax

Ev = mat2vec_E(Em,p)

Description

Ev = mat2vec_E(Em,p) transforms the event function $E(t,\mathbf{M})$ (where $E:\mathrm{R}\times\mathrm{R}^{p\times r}\to\mathrm{B}$) for a matrix-valued IVP into the event function $E(t,\mathbf{y})$ (where $E:\mathrm{R}\times\mathrm{R}^{pr}\to\mathrm{B}$) for its corresponding vector-valued IVP.

Input/Output Parameters

Variable Symbol Description Format
Input Em event function for matrix-valued IVP ()
- inputs to Em are the current time (t, 1×1 double) and the current state matrix (M, p×r double)
- output of Em is the evaluation of the event function (E, 1×1 logical) at the current time/state
1×1
function_handle
p number of rows of state matrix 1×1
double
Output Ev event function for corresponding vector-valued IVP ()
- inputs to Ev are the current time (t, 1×1 double) and the current state vector (y, pr×1 double)
- output of Ev is the evaluation of the event function (E, 1×1 logical) at the current time/state
1×1
function_handle

See also

mat2vec_IC | mat2vec_ODE | vec2mat_sol