ex5_1.m

来自「Programs for the book Advanced Engineeri」· M 代码 · 共 11 行

M
11
字号
% EX5_1.M  Solve Dy=1/(t-1) using Symbolic Math Toolbox
%  for Example 5.1 and 5.2
y=dsolve('Dy=1/(t-1)')
y1=dsolve('Dy=1/(t-1)','y(2)=-10')   % Initial values t=2
y2=dsolve('Dy=1/(t-1)','y(2)=0')
y3=dsolve('Dy=1/(t-1)','y(4)=8')     % Initial value t=4
%
%  Try help dsolve to understand the command
%  Also, add a few fprintf commands to explain the output
%

⌨️ 快捷键说明

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