Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: mxCreateDoubleMatrix() function
Date: Thu, 1 Oct 2009 05:08:02 +0000 (UTC)
Organization: PhysioSonics Inc
Lines: 11
Message-ID: <ha1dfi$20i$1@fred.mathworks.com>
References: <h9vvuk$qip$1@fred.mathworks.com> <ha07a3$bg6$1@fred.mathworks.com> <ha0tc1$nv$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 1254373682 2066 172.30.248.37 (1 Oct 2009 05:08:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 1 Oct 2009 05:08:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1129061
Xref: news.mathworks.com comp.soft-sys.matlab:574120


"Geoffroy " <grsabourin@gmail.com> wrote in message <ha0tc1$nv$1@fred.mathworks.com>...
> Yes I have finally found this function but I don't have any result. If I call the function like that
> 
> const mwSize dims[]={3,3};
> const mwSize NbDimension = 2;
> MatlabArray = mxCreateNumericArray( NbDimension, dims, mxUINT16_CLASS, mxREAL );

mwSize ndim = 3
mwSize  dims = {10, 10, 10}

That should give you the 10 x 10 x 10 array you referred to in your first example.