MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi
Learn moreOpportunities for recent engineering grads.
Apply TodayMATLAB Central > MATLAB Newsreader > Duplicate matrix by a number of columns 

Subject: Duplicate matrix by a number of columns From: Andy Date: 14 May, 2011 16:37:02 Message: 1 of 5 
I am a Matlab newbie and in need help getting some stuff done. My problem is that I A size(106,20503) and matrix B of size (106,1). I want to determine the correlation coefficient of matrix B and all the columns in matrix A. I am not getting any success because the two matrices have different sizes. My idea is to duplicate the columns in matrix B to have the same size as A (106, 20503) whiles keeping the individual elements the same. 
Subject: Duplicate matrix by a number of columns From: Roger Stafford Date: 14 May, 2011 17:37:04 Message: 2 of 5 
"Andy" wrote in message <iqmb3e$8v1$1@newscl01ah.mathworks.com>... 
Subject: Duplicate matrix by a number of columns From: Greg Heath Date: 14 May, 2011 17:43:12 Message: 3 of 5 
On May 14, 1:37 pm, "Roger Stafford" 
Subject: Duplicate matrix by a number of columns From: Andy Date: 14 May, 2011 18:23:02 Message: 4 of 5 
"Roger Stafford" wrote in message <iqmek0$ihv$1@newscl01ah.mathworks.com>... 
Subject: Duplicate matrix by a number of columns From: Roger Stafford Date: 15 May, 2011 00:29:04 Message: 5 of 5 
"Andy" wrote in message <iqmha6$pqb$1@newscl01ah.mathworks.com>... 
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.