From: Matt J on
Jason <gaudetteje(a)gmail.com> wrote in message <2c00c6f1-85fa-43f6-812d-48f23090c66d(a)u32g2000vbc.googlegroups.com>...
> Hi,
>
> Is there an efficient method or builtin function that will fan out
> data columns in my matrix? For example, if I start with an unknown
> data matrix, M, I'd like to get N in an efficient way than for loops.
========


As Bruno said, kron() will do the job, but it's usually a bad idea to construct such a matrix explicitly, both in terms of memory consumption and the efficiency of math operations that you would normally do with such matrices. That's why I made this alternative

http://www.mathworks.com/matlabcentral/fileexchange/25969-efficient-object-oriented-kronecker-product-manipulation