1ff9af85
David Mayerich
added MATLAB/OCTA...
|
1
2
3
4
5
6
7
8
9
10
11
|
function R = rtsOffsetPlots(D, s)
%This function offsets a series of plots in D by intervals of s
%R = the resulting offset data
%D = the data as a 2D matrix
%s = the interval used as an offset
nPlots = size(D, 2);
offsetMat = repmat(1:nPlots, size(D, 1), 1) * s;
R = D + offsetMat;
|