⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 chemreac.m

📁 ode routines in matlab
💻 M
字号:
function [out] = ChemReac(x, y, flag)%%  Evaluate the right hand side function for the%  chemical reaction system%%    y_1'(x) = -k1*y_1(x) %    y_2'(x) =  k1*y_1(x) - k2*y_2(x)%    y_3'(x) =              k2*y_2(x)%%%global k1 k2switch( flag )   case '' % return right hand side      out  = [ -k1   0   0;                k1  -k2  0;                0    k2  0 ]* y;      case 'jacobian' % return Jaacobian of right hand side      out  = [ -k1   0   0;                k1  -k2  0;                0    k2  0 ];      otherwise      error(['Unknown request .'])end

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -