teststeel.m
来自「微分方程解法D:matlab mmode.rar」· M 代码 · 共 19 行
M
19 行
function testSteel
% testSteel Verify that solutions obtained by ode45 are independent of
% interpolative refinement. Solution is obtained with default
% refinement (= 4) and with no refinement.
%
% Synopsis: testSteel
%
% Input: none
%
% Output: Every fourth time step from refined solution is printed along with
% all steps from unrefined solution. Solutions are identical.
close all % close any plot windows
[t4,T4] = steelHeat; % solution with default refinement = 4
[t1,T1] = steelHeat(1); % solution with no refinement
n = length(t4);
disp(' time T1 time T4');
disp([t1 T1 t4(1:4:n) T4(1:4:n)])
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?