I'm having great difficulty coding the following in MATLAB: Suppose you have the following vector:
a b c d e f g h ...
Specifying an (even) window size, create the following matrix of dimensions
L rows by
n columns (example,
L = 4):
a c e ... b d f ... c e g ... d f h ...
Even more difficult is taking a vector of arbitrary length, specifying the number of windows, and optimizing (maximizing) the window size so less values at the end of the vector are dumped.