Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
771 views
in Technique[技术] by (71.8m points)

octave - 限制大矩阵的八度控制台输出(Limiting Octave console output for large matrices)

Let's say I have a moderately large matrix with data.

(假设我有一个中等大小的数据矩阵。)

Around 200k elements.

(大约20万个元素。)

Whenever I mistakenly input X into the console, it locks into a printing loop that lasts minutes (I can't imagine what would be like with a real data matrix with millions of elements);

(每当我错误地将X输入到控制台时,它就会锁定到持续几分钟的打印循环中(我无法想象带有数百万个元素的真实数据矩阵会是什么样子);)

meanwhile languages like python have the much saner default of printing only a few rows from the start & end of such matrices (or lists).

(同时,像python这样的语言在从此类矩阵(或列表)的开头和结尾开始仅打印几行时,具有更明智的默认设置。)

Is there any option (I'm not finding one in the docs) to make this the default behavior?

(是否有任何选项(我在文档中找不到)将其设置为默认行为?)

My quality of life using octave will improve a lot.

(使用八度音阶的生活质量会大大提高。)

  ask by Adrian translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

1.4m articles

1.4m replys

5 comments

57.0k users

...