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 09:42:04 +0000 (UTC)
Organization: Indian Institute of Technology
Lines: 18
Message-ID: <h75kdb$8c6$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>
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 1251366124 8582 172.30.248.35 (27 Aug 2009 09:42:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 27 Aug 2009 09:42:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 223861
Xref: news.mathworks.com comp.soft-sys.matlab:566370



> After doing that, please advise me what, exactly, you would like the mex file to do, as I have been under the apparently mistaken impression you wanted to copy some double inputs into a cell array for manipulation inside the mex routine.
> 
> James Tursa


Hi James,
Sorry if I have confused you. My C mex file name is struct1.c
I wanted to pass all all the 2D matrices in a cell to Mex file. In the mex file I want to use each element of any matrix according to my requirements
In C file I want all the 2D matrices accessible seperately.

By running your new code I got...
*****************
Input argument is not double, it is cell
??? Error using ==> struct1
Returning to MATLAB

***********************