Yes I did see your solution and it works perfectly and exactly what I was looking for!! Should have thought abt that myself.
I just got the impression from James' response that MTIMESX is supposed to be better for large arrays. Of course, even if that is true, calling an external function will have its limitation anyways
"Bruno Luong" <email@example.com> wrote in message <firstname.lastname@example.org>... > "Pag Max" wrote in message <email@example.com>... > > > > > I understand repmat was a repeatation. Yes I am dealing with very large array sizes. Will like to know if MTIMESX can be a smarter solution. > > See my solution, that does not call REPMAT nor external function such as MTIMESX. > > Bruno