update_results.m

来自「五点差分型多重网格方法:各种插值算子的比较)」· M 代码 · 共 24 行

M
24
字号
%========================
% Update array of results
%========================

% James Bordner and Faisal Saied
% Department of Computer Science
% University of Illinois at Urbana-Champaign
% 10 April 1995

% Modified for Matlab Version 6 Compatability
% Ryan McKenzie
% University of Kentucky Center for Computational Sciences
% April 2004
%
% Flop counts no longer available in Matlab 6, so removed from the MGLab system.

function results = update_results(results,method,iter,rn)

results = [results; [iter, 0, toc, rn]];
disp (sprintf('%s iteration %g  residual %g',method, iter,rn));



⌨️ 快捷键说明

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