有没有办法以八度指定命令行宽度?
我想在 python 脚本中使用八度音程作为“计算器”。目前我正在运行八度音程,如下所示:
octave -q --eval 'some code'
并读取标准输出来解释结果。
然而,一旦矩阵达到一定的宽度,我就会遇到问题,这样八度开始用列计数来输出它们,如下所示:
ans =
Columns 1 through 5:
6.6264e-01 2.6142e-01 9.2413e-01 1.6814e-01 6.3117e-01
Columns 6 and 7:
6.6392e-01 4.0483e-01
这使得结果的解释变得有点困难。
有没有办法告诉八度不要分割结果的打印?
I would like to use octave as a "calculator" in a python script. Currently I am running octave like so:
octave -q --eval 'some code'
and read the stdout to interpret the results.
However, I am running into problems once matrices reach a certain width so that octave starts to output them with column numerations like so:
ans =
Columns 1 through 5:
6.6264e-01 2.6142e-01 9.2413e-01 1.6814e-01 6.3117e-01
Columns 6 and 7:
6.6392e-01 4.0483e-01
which makes the interpreting of the result a little harder.
Is there a way to tell octave not to split up the printing of results?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
split_long_rows ()
命令应该能够改变这种行为。从文档,The
split_long_rows ()
command should be able to change this behavior. From the documentation,