state.m

来自「good code for matlab by mili , i than yo」· M 代码 · 共 8 行

M
8 行
字号
function stst = state(t,y) 
% set up the state equations as a col vector 
% the previous state is known in y 
% the first order derivatives is returned 
% in the variable name used to the left 
% of the equal sign 
stst = [ y(2) , (y(1)*y(1)+y(2)*y(5)- y(3)*y(3)) ,...
      y(4), (2*y(1)*y(3) +y(4)*y*5)), -2*y(1)]'; 

⌨️ 快捷键说明

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