Re: Use of mathlink in C++
- To: mathgroup at smc.vnet.net
- Subject: [mg55729] Re: Use of mathlink in C++
- From: "Jens-Peer Kuska" <kuska at informatik.uni-leipzig.de>
- Date: Tue, 5 Apr 2005 03:20:48 -0400 (EDT)
- Organization: Uni Leipzig
- References: <d2qjc5$p1e$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Hi,
MLPutFunction(stdlink,"Partition",2);
MLPutFunction(stdlink,"Partition",2);
MLPutRealList(stdlink,data,nx*ny*nz);
MLPutInteger(stdlink,nx);
MLPutInteger(stdlink,ny);
Regards
Jens
"Ryan Tibshirani" <ryantibs at stanford.edu> schrieb
im Newsbeitrag news:d2qjc5$p1e$1 at smc.vnet.net...
>
> Hi everyone, I have a question:
>
> I want to pass a three-dimensional array of real
> numbers from C++ to
> Mathematica, and I want to call Mathematica's
> ContourPlot3D function
> (from within the C++ program) to graph a contour
> plot using this array
> as the input data. Can someone respond with a
> bit of sample C++ code on
> how to do this?
>
> Thanks very much
> Ryan Tibshirani
>