📄 defaultplots.m
字号:
function h = defaultplots(h)
% DEFAULTPLOTS Create the default plots drawn when GUI loads
% h = DEFAULTPLOTS(h) creates the initial plots drawn in the GUI
% from data given in structure h. Returns the structure with new
% fields set.
% Jordan Rosenthal, 04-Oct-1999
%STEMPLOTMARKERSIZE = 5; % Default marker size for stem plots
%FREQMARKERSIZE = 7; % Default marker size for frequency markers
% Note: LineWidth for all plots is set in 'Initialize' case of LTIDEMO
%--------------------------------------------------------------------------------
% Default Settings
%--------------------------------------------------------------------------------
AXISXLIM = [-10 10];TRESETVALUE = -2; % The x axis value at which t starts in linear convolutionMAXPLOTPOINTS = 10000; % The highest number of points allowed in a line plot.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Do not change code below this point.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
NO = 0; YES = 1; OFF = 0; ON = 1;h.Graphics.Signal = [];h.Graphics.FlippedSig = [];
h.Lines.MultiplyZeroLine = [];h.Patch.MultipliedSig = [];
h.Lines.TotalOutput = [];h.Lines.CurrentOutput = [];h.Text.ImpulseText.Multiply = [];
h.Text.ImpulseText.Output = [];
h.Text.Arrows = [];h.Text.OutputLabel = [];
% Datah.Data.Input.x = [];h.Data.Input.h = [];h.Data.Output = [];% State Infoh.State.AxisXLim = AXISXLIM;h.State.DataInitialized = NO;h.State.LineWidth = 2;h.State.t = TRESETVALUE;h.State.tResetValue = TRESETVALUE;h.State.tArrowOffset = 0.01*diff(h.State.AxisXLim);h.State.SignalToFlip = 'Flip h(t)';h.State.TutorialMode = NO;
h.State.MaxPlotPoints = MAXPLOTPOINTS;
set(h.Axis.Big,'XLim',AXISXLIM);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -