Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Issue with horzcat
Date: Tue, 14 Apr 2009 03:52:01 +0000 (UTC)
Organization: Battelle Energy Alliance (INL)
Lines: 10
Message-ID: <gs1191$q0a$1@fred.mathworks.com>
References: <gs10ep$1vr$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1239681121 26634 172.30.248.35 (14 Apr 2009 03:52:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 14 Apr 2009 03:52:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 688530
Xref: news.mathworks.com comp.soft-sys.matlab:532507


Since you give the dimensions, I will give it a try:


>> ortPMat = rand(2,51);
>> newPoint = rand(2,1);
>> horzcat(ortPMat,newPoint);
>> 


No problem.  Why are you taking the transpose?