Computes the BOLD signal from the hemodynamic state variables. Mirrors SPM25's spm_gx_fmri.

dcm_gx_fmri(x, u, P, M)

Arguments

x

State matrix (rows = regions, cols = state variables).

u

Driving inputs at the current time.

P

List of model parameters (A, B, C, D, transit, decay, epsilon, ...).

M

Model structure list (optional).

Value

List with the BOLD prediction g and Jacobian dgdx.