Path: news.mathworks.com!not-for-mail
From: "Sebastian Arslanogullari" <sebastian.arslanogullari@robur.se>
Newsgroups: comp.soft-sys.matlab
Subject: Re: use of matrix repeatedly
Date: Thu, 5 Nov 2009 19:11:02 +0000 (UTC)
Organization: Robur AB
Lines: 6
Message-ID: <hcv806$occ$1@fred.mathworks.com>
References: <10da359e-f86e-496d-b2d4-a171b447d346@h14g2000pri.googlegroups.com>
Reply-To: "Sebastian Arslanogullari" <sebastian.arslanogullari@robur.se>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1257448262 24972 172.30.248.38 (5 Nov 2009 19:11:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 5 Nov 2009 19:11:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 69570
Xref: news.mathworks.com comp.soft-sys.matlab:582837


This could be done in several ways, e.g.
k2=repmat(k,m,m);
or you can use kronecker tensor product:
k2 = kron(ones(m),k);
Regards
Sebastian