📄 spanplot.m
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -