Path: news.mathworks.com!not-for-mail
From: "Jeff " <jhajewsk@indiana.edu>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Issue with horzcat
Date: Tue, 14 Apr 2009 15:36:01 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 15
Message-ID: <gs2ah1$ff4$1@fred.mathworks.com>
References: <gs10ep$1vr$1@fred.mathworks.com> <gs1191$q0a$1@fred.mathworks.com>
Reply-To: "Jeff " <jhajewsk@indiana.edu>
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 1239723361 15844 172.30.248.35 (14 Apr 2009 15:36:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 14 Apr 2009 15:36:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 942762
Xref: news.mathworks.com comp.soft-sys.matlab:532663


"Matt Fig" <spamanon@yahoo.com> wrote in message <gs1191$q0a$1@fred.mathworks.com>...
> 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?

Well ortPmat is a 51X2 matrix so I have to take the transpose to make it 2X51. I don't know a lot of the in depth details of Matlab but transposing a matrix AFTER I have matlab output its size affects the size that is put out (at least that is what was happening last night). Thanks a lot for your help

Jeff