Reduces a non-linear state equation to bilinear form dx/dt = M0 x + sum_i u_i M1[[i]] x, also returning the lead-field expansion. Mirrors SPM25's spm_bireduce.

dcm_bireduce(M, P)

Arguments

M

Model list (with f, g, x, u, ...).

P

Parameter structure.

Value

List with M0, M1, L1, L2.