⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 comb.m

📁 (源代码)基于计算机的信号处理实践 栾晓明译
💻 M
字号:
function comb(x, y, linetype)
%COMB   Plot discrete-time sequence data.
%----
%   COMB(Y) plots the data sequence Y as stems from the x-axis
%           terminated with circles for the data value.
%   COMB(X,Y) plots the data sequence Y at the values
%              specfied in X.
%   COMB(...,'LINESPEC') uses the linetype specifed for the stems and
%                        markers.  See PLOT for possibilities.
%
%   See also: stem

%*** This is a Mathworks M-file. It has been  ******
%***   RENAMED TO stem( ) in MATLAB Ver 4.0   ******
%***   and received new features in Ver. 5.0  ******

if nargin <3
   linetype = '-';
end
if nargin <2
   y = x;
   x = 1:length(y);
end

stem( x, y, linetype );   %<-- just call the new function

⌨️ 快捷键说明

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