📄 pend2_der.m
字号:
function derivs = pend2_der( t, x, flag,w0)
% pend2_der: returns the derivatives for the pendulum's full solution
% The function pen2_der describes the equations of motion for a
% pendulum. The parameter w0, is part of the input
% Entries in the vector of dependent variables are:
% x(1)-position, x(2)-angular velocity
derivs = [ x(2); -w0^2*sin(x(1))];
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -