MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi
Learn moreOpportunities for recent engineering grads.
Apply TodayMATLAB Central > MATLAB Newsreader > Blockwise Matrix Expansion 

Hi all, 
"Emily Bauner" <emily.tting@gmail.com> wrote in message <i222pn$8e$1@fred.mathworks.com>... 
"Emily Bauner" <emily.tting@gmail.com> wrote in message <i222pn$8e$1@fred.mathworks.com>... 
I would use repmat plus the MATLAB (:) operator, which "unreels" a matrix column by column. Here's an example. I allow for a variable number of replicas via variable Reps: 
Subject: Blockwise Matrix Expansion From: Roger Stafford Date: 19 Jul, 2010 18:33:06 Message: 5 of 7 
"Emily Bauner" <emily.tting@gmail.com> wrote in message <i222pn$8e$1@fred.mathworks.com>... 
Subject: Blockwise Matrix Expansion From: Roger Stafford Date: 19 Jul, 2010 18:57:09 Message: 6 of 7 
"Roger Stafford" <ellieandrogerxyzzy@mindspring.com.invalid> wrote in message <i225p2$9bs$1@fred.mathworks.com>... 
Thank you so much, guys, for those fast replies. It's exactly what I needed  you're awesome! 
No tags are associated with this thread.
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.