Path: news.mathworks.com!not-for-mail
From: "Bruno Luong" <b.luong@fogale.findmycountry>
Newsgroups: comp.soft-sys.matlab
Subject: Re: help regarding 2D matrix using c mex file
Date: Tue, 18 Aug 2009 09:57:02 +0000 (UTC)
Organization: FOGALE nanotech
Lines: 6
Message-ID: <h6dtte$3k4$1@fred.mathworks.com>
References: <h6b2k6$oh2$1@fred.mathworks.com> <h6b3nq$6ft$1@fred.mathworks.com> <h6dsve$37p$1@fred.mathworks.com>
Reply-To: "Bruno Luong" <b.luong@fogale.findmycountry>
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 1250589422 3716 172.30.248.38 (18 Aug 2009 09:57:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 18 Aug 2009 09:57:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 390839
Xref: news.mathworks.com comp.soft-sys.matlab:564143


"oruganti murthy" <omurthy@yahoo.com> wrote in message <h6dsve$37p$1@fred.mathworks.com>...
> But how to overcome the Transposed form of reading array from MATLAB...?

I guess you don't have other choice than transposing the matrix - either in C or in Matlab side. The "issue" is due the way Matlab organizes the data. If your function work with the opposite convention then you have convert back and forth.

Bruno