t_skip.m
来自「以上所传的内容为电力系统比较全面的分析程序,才用的是matlab编写m的文件」· M 代码 · 共 31 行
M
31 行
function t_skip(cnt, msg)%T_SKIP Skips a number of tests.% t_skip(cnt, msg) increments the global test count and skipped tests% count. Prints 'skipped tests x..y : ' followed by the msg, unless the% global variable t_quiet is true. Intended to be called between calls to% t_begin and t_end.% MATPOWER% $Id: t_skip.m,v 1.1 2004/08/25 13:24:24 ray Exp $% by Ray Zimmerman, PSERC Cornell% Copyright (c) 2004 by Power System Engineering Research Center (PSERC)% See http://www.pserc.cornell.edu/matpower/ for more info.global t_quiet;global t_counter;global t_skip_cnt;if nargin < 2 | strcmp(msg, '') msg = '';else msg = [' : ', msg];endt_skip_cnt = t_skip_cnt + cnt;if ~t_quiet fprintf('skipped tests %d..%d%s\n', t_counter, t_counter+cnt-1, msg);endt_counter = t_counter + cnt;return;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?