Computes the BOLD signal from the hemodynamic state variables. Mirrors
SPM25's spm_gx_fmri.
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.