p617f.m
来自「Programs for the book Advanced Engineeri」· M 代码 · 共 11 行
M
11 行
function xdot=p617f(t,x)
% P617f.m Define the equations xdot=Ax+[0 1]'*f(t); % A=[0 1;-1 0];
% CALL: xdot=p617f(t,x)
%
funct=1-(t^2)/(pi^2);
if t > pi
funct=0;
end
xdot=[0 1;-1 0]*x + [0 1]'*funct; % Column vector
%
% Version 5 Return a column vector
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?