Path: news.mathworks.com!not-for-mail
From: "Titus Edelhofer" <titus.edelhofer@mathworks.de>
Newsgroups: comp.soft-sys.matlab
Subject: Re: mxCreateDoubleMatrix() function
Date: Wed, 30 Sep 2009 20:16:35 +0200
Organization: The MathWorks, Inc.
Lines: 19
Message-ID: <ha07a3$bg6$1@fred.mathworks.com>
References: <h9vvuk$qip$1@fred.mathworks.com>
NNTP-Posting-Host: 172.16.236.202
X-Trace: fred.mathworks.com 1254334596 11782 172.16.236.202 (30 Sep 2009 18:16:36 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 30 Sep 2009 18:16:36 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5843
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
Xref: news.mathworks.com comp.soft-sys.matlab:574030



"Geoffroy " <grsabourin@gmail.com> schrieb im Newsbeitrag 
news:h9vvuk$qip$1@fred.mathworks.com...
>I have created a small interface to transfert data between a C++ program 
>and a Matlab workspace. It is working well but I don't know how to create a 
>3 dimensional matrix to contain a RGB image. I'am able to create and 
>transfert 2D matrix but not a 3D matrix like Im = zeros ( 10, 10, 10 );
>
> How is it possible to do that?
>
> Thank you

Hi,
you will need to use mxCreateNumericArray. The doc gives a three dimensional 
example.

Titus