开发者

Can't use Export() with Mathematica Trial Version

开发者 https://www.devze.com 2023-01-31 07:09 出处:网络
Every time I try to use Export, I get this Error: General::unavail: Export is开发者_如何学Go not available in this version of Mathematica.

Every time I try to use Export, I get this Error:

General::unavail: Export is开发者_如何学Go not available in this version of Mathematica.

Why isn't Export() available with the Trial version?

Thanks.


It's not an entirely unreasonable question if you're trying to see how Mathematica might integrate with a wider set of systems. Trial versions used to be save disabled and presumably this is still the case. Export makes a pretty useful workaround for that, so it too is knocked out.

Your choices are:

  • Copy/paste and reformat. It's not hard to turn a nested list into a CSV. Copy/pasting graphics is easy too. None of this helps if you want to do this programatically, however.
  • Try rcollyer's Put/Write.
  • Pony up $295 for the Home Edition (or somewhat less for Student, if you qualify.)
  • You could also try using the Run command:

cmd = "echo " <> ToString[{{your}, {data}, {here}}] <> " | cat - >> output.dat" Run[cmd]

Replace that ToString[...] with any expression you have. This won't work for graphics but perhaps there's another way there? Raw bitmap data maybe. EDIT: Yes, use eg ImageData[your_img, "Byte"] to get a byte array of 0..255 RGB values out. ImageData supports a few types and interleaving, so your downstream program should be able to read it back in.

0

精彩评论

暂无评论...
验证码 换一张
取 消