Path: news.mathworks.com!not-for-mail
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$1@newscl01ah.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: www-02-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1305391022 9185 172.30.248.47 (14 May 2011 16:37:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 14 May 2011 16:37:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2843467
Xref: news.mathworks.com 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