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

📄 stepplot.m

📁 老外写的小波变换的工具箱
💻 M
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -