spanplot.m
来自「hi i have a huge collection are you int」· M 代码 · 共 21 行
M
21 行
function spanplot (z)% Spanplot (z)% SPANPLOT takes a two dimensional matrix, z, and plots an% HP-type waterfall plot of each column back to back with% the first column plotted on the top and the last column % plotted on the bottom of the page. The y axis is re-scaled % in the same units to span the entire plot. % RwM-1993 rmeredith@nrlssc.navy.mila=size(z);nrow=a(1);ncol=a(2); maxvals=max(abs(z));spcintv= .5 * mean(maxvals); % spacing interval btwn plotsmaxspc = ncol*spcintv/2; % max offset = offset for 1st columnnewz = z(:,1:ncol) + ones(nrow,1)* (maxspc - [1:ncol]*spcintv);plot(newz);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?