inc_time.m

来自「Matlab学习课件」· M 代码 · 共 12 行

M
12
字号
function inc_time
% Increments time for simulation use
% Does nothing for real time use

global tstep del_t	% These variables must be declared global

% For real time:
tstep = get_time;

% For simulated (or calibrated) time
%tstep = tstep + del_t;

⌨️ 快捷键说明

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