从CDF播放器中获取数据 [英] Getting data out of CDF-player

查看:147
本文介绍了从CDF播放器中获取数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于我的怀疑论者工作组,我在Mathematica中编写了一个程序,用于测试推土机评估通过照片显示给他们的人的身份的能力.为了进行零值测量,我将该文档以CDF格式(新的v8可计算文档格式,以 CDF播放器).在我的计算机上(使用mma),一切正常,但其他计算机则无法导出数据(程序将导出至Excel文件).阅读精确打印时,我看到播放器不支持导出.所以我的问题是:

For my Skeptics working group I wrote a program in Mathematica to test a dowser's ability to assess the status of persons shown to them by means of photographs. For a null measurement I distributed this document to my group's members in CDF form (the new v8 Computable Document Format, meant to be run with the CDF-player). On my computer (using mma) it all works fine, but the others can't export the data (the program does an export to an Excel file). On reading the fine print I see that the player doesn't support Export. So my question is:

有什么方法可以从CDF播放器中获取数据吗?

Is there any way to get data out of CDF-player?

推荐答案

出于可理解的原因,math/CDF播放器的输入和输出都受到严格限制.

For understandable reasons, the math/CDF player is severely limited in both input and output.

但是,Print有效,因此您可以在TableForm中进行打印-生成 TSV -然后将其复制/粘贴到 Gnumeric (为什么要使用Excel ?! ).

However, Print works, so you could print in TableForm - which produces a TSV - then copy/paste it into Gnumeric ('cause why would you use Excel?!).

我刚刚在Gnumeric和OpenOffice中都对此进行了测试,并且效果很好.

I just tested this in both Gnumeric and OpenOffice and it worked fine.

将以下代码放入CDF文档中进行测试.

Put the following code into a CDF document to test.

Button["Press me!", Print[TableForm[RandomReal[{0, 1}, {10, 10}]]]]

请注意,您无法编辑Input,但是可以按按钮并复制输出.怀疑论者团体通常是技术上相当称职的人,这应该是一个可行的解决方案...

Note that you can't edit the Input, but you can press the button and copy the output. Skeptics groups are normally fairly technically competent people, this should probably be a workable solution...

这篇关于从CDF播放器中获取数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆