Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2003
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2003

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Output for C Files

  • To: mathgroup at smc.vnet.net
  • Subject: [mg39414] Re: [mg39374] Output for C Files
  • From: Sseziwa Mukasa <mukasa at jeol.com>
  • Date: Fri, 14 Feb 2003 03:23:14 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

On Thursday, February 13, 2003, at 04:52 AM, Jochen Raedler wrote:

> Hi all,
>
> I've got a question to Mathematicas' functions/possibilities to export 
> data
> to files.
> I want to create in Mathematica different Vectors (=tables) and 
> Matrixes and
> I also want to do some calculations with them in Mathematica.
> At the end, I want to export the data (the inputs and results) into a 
> file
> to access them in C. It's to test my C routines.
> How can I do this? I don't want to write into textfiles and use the C
> functions like fscanf,... Are there other ways?
> Such like I write from Mathematica to a file:
>
> float any_name[] = { data separated with comma..};
>
> Has anyone an idea?
>

You could use Mathlink to communicate directly with your C routines, 
there are binary output routines for Mathematica too but I don't see 
how that's any easier than using a text file.

Regards,

Ssezi



  • Prev by Date: Re: Mathematica and LaTeX
  • Next by Date: Re: Bug in ColorFunctionScaling ???
  • Previous by thread: Re: Output for C Files
  • Next by thread: Mathematica and LaTeX