plotsim.m

来自「本书是电子通信类的本科、研究生辅助教材」· M 代码 · 共 21 行

M
21
字号
function plotsim(t,x,y)
%PLOTSIM Function called by the integrators to plot graphs.
%	This function is only called when the integrators are
%	called with no left hand arguments. 
%	If you don't want graphs to automatically be plotted
%	you can comment out the following lines.
%	

%	Copyright (c) 1990-94 by The MathWorks, Inc.
%	Andrew Grace 11-12-90.
if nargin > 2
	if isempty(y), return, end
	plot(t,y)
	title('Output trajectory')
else
	if isempty(x), return, end
	plot(t,x)
	title('State trajectory')
end
xlabel('Time')

⌨️ 快捷键说明

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