Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Issue with horzcat
Date: Tue, 14 Apr 2009 22:29:01 +0000 (UTC)
Organization: Xoran Technologies
Lines: 15
Message-ID: <gs32nd$f1j$1@fred.mathworks.com>
References: <gs10ep$1vr$1@fred.mathworks.com> <gs1191$q0a$1@fred.mathworks.com> <gs2ah1$ff4$1@fred.mathworks.com> <gs2g1c$k4g$1@fred.mathworks.com> <gs2icq$b0m$1@fred.mathworks.com> <gs2jaa$gv1$1@fred.mathworks.com> <gs2kdv$k1j$1@fred.mathworks.com> <gs2l0m$khd$1@fred.mathworks.com> <gs30g5$dr8$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1239748141 15411 172.30.248.37 (14 Apr 2009 22:29:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 14 Apr 2009 22:29:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1440443
Xref: news.mathworks.com comp.soft-sys.matlab:532773


"Jeff Hajewski" <jhajewsk@indiana.edu> wrote in message <gs30g5$dr8$1@fred.mathworks.com>...
> "If all you did was change line 45 of buildCurve by removing the tranpose, why is ortPmat now of different dimensions than before?"
> 
> That is the whole reason I started this post to begin with-- it does not make any sense. 
-------

The problem you describe now is not the problem you described in your original post. In the original post, you claimed that horzcat was failing to concatenate two matrices which by rights it ought to be able to. However, it is now  clear that the two matrices passed to horzcat were never of compatible sizes for this concatenation to be possible. 

If there is a problem, horzcat() is not the likely suspect. For whatever reason, the matrices are not the shape you expect by the time they are ready to be passed to horzcat. The change in shape is happening at some previous point in your code.


> That transpose is the ONLY change I made. If you want I can post the entire program. I am not making more changes than I am telling you.
--------

OK. Post 2 versions. The one before the change and the one after.