comb.m

来自「信号处理,是一本国处优秀教材的附带程序源码,相信对大家有用!」· M 代码 · 共 26 行

M
26
字号
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 = '-';endif nargin <2   y = x;   x = 1:length(y);endstem( x, y, linetype );   %<-- just call the new function

⌨️ 快捷键说明

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