无法在 Mathematica 试用版中使用 Export()
每次我尝试使用 Export 时,都会收到此错误:
General::unavail: Export is not available in this version of Mathematica.
为什么试用版不提供 Export()?
谢谢。
Every time I try to use Export, I get this Error:
General::unavail: Export is not available in this version of Mathematica.
Why isn't Export() available with the Trial version?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您想了解 Mathematica 如何与更广泛的系统集成,这并不是一个完全不合理的问题。试用版过去是禁用保存的,大概情况仍然如此。 Export 对此提供了一个非常有用的解决方法,因此它也被淘汰了。
您的选择是:
Put
/Write
。Run
命令:cmd = "echo " <> ToString[{{your}, {data}, {here}}] <> “ | cat - >> 输出.dat”
Run[cmd]
将
ToString[...]
替换为您拥有的任何表达式。这不适用于图形,但也许还有另一种方法?也许是原始位图数据。编辑:是的,使用例如ImageData[your_img, "Byte"]
获取 0..255 RGB 值的字节数组。 ImageData 支持几种类型和交错,因此您的下游程序应该能够将其读回。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:
Put
/Write
.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 egImageData[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.