defaultplots.m

来自「这是一个基于matlab开发的关于c语言的图形转换程序,可实现直方图的生成和传输」· M 代码 · 共 50 行

M
50
字号
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 + =
减小字号Ctrl + -
显示快捷键?