Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: how to pass cell of 3D matrices to C mex
Date: Thu, 27 Aug 2009 15:41:04 +0000 (UTC)
Organization: Boeing
Lines: 11
Message-ID: <h769eg$4sm$1@fred.mathworks.com>
References: <h6tl9j$a0p$1@fred.mathworks.com> <h6tp1k$sja$1@fred.mathworks.com> <h72u3f$5qi$1@fred.mathworks.com> <h73knq$o06$1@fred.mathworks.com> <h74ttb$t3r$1@fred.mathworks.com> <h75bq8$jk6$1@fred.mathworks.com> <h75fld$ort$1@fred.mathworks.com> <h75j0a$rg4$1@fred.mathworks.com> <h75kdb$8c6$1@fred.mathworks.com> <h75tia$ov3$1@fred.mathworks.com>
Reply-To: <HIDDEN>
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 1251387664 5014 172.30.248.38 (27 Aug 2009 15:41:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 27 Aug 2009 15:41:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 756104
Xref: news.mathworks.com comp.soft-sys.matlab:566479


"Ramana murthy" <omurthy@yahoo.com> wrote in message <h75tia$ov3$1@fred.mathworks.com>...
> INput from Matlab file 
> A cell of size k, containing a MxN matrix entries
> Desired variable in C MEx file
> A 3D matrix data[i][j][k] where k is the kth cell entry
> or equivalent representation so that I can access MxNth matrix elements
> 

Follow-up question:  Are you going to be *changing* the data inside your mex routine, or are you treating it as read-only?  In the latter case, a much more efficient mex routine can be written than the one I just posted.

James Tursa