Generated Code
The following is matlab code generated by the CellML API from this CellML file. (Back to language selection)
The raw code is available.
Model is unsuitably constrained (i.e. there were still some variables left to be computed, and some unusable equations left over). At the time of the error, the following variables were found: * Defined: time in component environment * Defined: V in component membrane * Undefined: I_stim in component membrane * Defined: C in component membrane * Defined: i_Na in component fast_sodium_current * Defined: i_s in component slow_inward_current * Defined: i_x1 in component time_dependent_outward_current * Defined: i_K1 in component time_independent_outward_current * Defined: g_Na in component fast_sodium_current * Defined: E_Na in component fast_sodium_current * Defined: m in component fast_sodium_current_m_gate * Defined: h in component fast_sodium_current_h_gate * Defined: alpha_m in component fast_sodium_current_m_gate * Defined: beta_m in component fast_sodium_current_m_gate * Defined: alpha_h in component fast_sodium_current_h_gate * Defined: beta_h in component fast_sodium_current_h_gate * Defined: x1 in component time_dependent_outward_current_x1_gate * Defined: alpha_x1 in component time_dependent_outward_current_x1_gate * Defined: beta_x1 in component time_dependent_outward_current_x1_gate * Defined: g_s in component slow_inward_current * Defined: E_s in component slow_inward_current * Defined: Cai in component slow_inward_current * Defined: d in component slow_inward_current_d_gate * Defined: f in component slow_inward_current_f_gate * Defined: alpha_d in component slow_inward_current_d_gate * Defined: beta_d in component slow_inward_current_d_gate * Defined: R_d in component slow_inward_current_d_gate * Defined: alpha_f in component slow_inward_current_f_gate * Defined: beta_f in component slow_inward_current_f_gate * Defined: R_f in component slow_inward_current_f_gate * Undefined: d/dt V in component membrane * Defined: d/dt m in component fast_sodium_current_m_gate * Defined: d/dt h in component fast_sodium_current_h_gate * Defined: d/dt x1 in component time_dependent_outward_current_x1_gate * Defined: d/dt Cai in component slow_inward_current * Defined: d/dt d in component slow_inward_current_d_gate * Defined: d/dt f in component slow_inward_current_f_gate The following equations couldn't be used: * Equation in apply element with id membrane_voltage_diff_eq.