【发布时间】:2012-01-05 19:59:25
【问题描述】:
在 Octave 中,我可以抑制或隐藏在行尾添加分号的指令的输出:
octave:1> exp([0 1])
ans = [ 1.0000 2.7183 ]
octave:2> exp([0 1]);
octave:3>
现在,如果函数在返回值之前显示文本(例如,使用 disp() 或 print()),我该如何抑制输出?换句话说,我希望能够做到这一点:
disp("Starting...");
% hide text the may get displayed after this point
% ...
% show all text again after this point
disp("Done!");
【问题讨论】:
标签: command-line octave