From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Duplicate  matrix by a number of columns
Date: Sat, 14 May 2011 16:37:02 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 7
Message-ID: <iqmb3e$8v1$>
Reply-To: <HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: 1305391022 9185 (14 May 2011 16:37:02 GMT)
NNTP-Posting-Date: Sat, 14 May 2011 16:37:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2843467
Xref: comp.soft-sys.matlab:726814

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.

Any ideas how to do this?

Thanks in advance

~ Andy