odemfile.m
来自「很多matlab的源代码」· M 代码 · 共 25 行
M
25 行
function yp = odemfile(t,y)
% ODEMFILE Demonstration function file for DEMODE
% YP = ODEMFILE(T,Y) returns the state derivatives for a 2nd order system
% ADSP Toolbox: Version 2.0
% For use with "Analog and Digital Signal Processing", 2nd Ed.
% Published by PWS Publishing Co.
%
% Ashok Ambardar, EE Dept. MTU, Houghton, MI 49931, USA
% http://www.ee.mtu/faculty/akambard.html
% e-mail: akambard@mtu.edu
% Copyright (c) 1998
if nargin==0,
help odemfile,
disp('This demo function file is used by various ode routines'),
disp('Here is what it contains')
disp('yp=[y(2); -3*y(1)-4*y(2)+exp(-t)];')
return
end
yp=[y(2); -3*y(1)-4*y(2)+exp(-t)];
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?