stepplot.m
来自「老外写的小波变换的工具箱」· M 代码 · 共 38 行
M
38 行
function StepPlot(y, nlayers, sep, plotpar)
% StepPlot -- split signal into nlayers equal pieces for plotting
% Usage
% StepPlot(y, nlayers, sep, plotpar)
%
% Inputs
% y 1-d signal
% nlayers number of segments into which y is to be split
% sep vertical separation between each segment
% plotpar parameters to be passed to the plotting procedure
%
% Description
% Splits input data y nlayers equal pieces which are then stacked
% (from bottom to top) in a plot with user specified vertical
% separation.
%
n = length(y);
y = reshape( y, 1, n);
layerlength = n/nlayers;
addon = sep * floor( (0:(n-1))/layerlength );
ymx = reshape( y + addon, layerlength, nlayers);
plot( 1:layerlength, ymx, plotpar)
%% Part of Wavelab Version 850% Built Tue Jan 3 13:20:41 EST 2006% This is Copyrighted Material% For Copying permissions see COPYING.m% Comments? e-mail wavelab@stat.stanford.edu
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?