PDA

查看完整版本 : MATLAB的换行的问题


billwfox
2008-07-11, 17:05
请问各位大虾,怎么才可以把命令窗口中的空白行去掉?
就是,把下面的内容
>> sample1
input the number of tape>round(sqrt(13))-1

items =

13


cost =

709


average_cost =

54.5385


转成


>> sample1
input the number of tape>round(sqrt(13))-1
items =
13
cost =
709
average_cost =
54.5385


不知道应该怎么设置...........我觉得MATLAB默认的那种显示方法不太紧凑........谢谢。:lovely:

billwfox
2008-07-11, 17:06
再次谢谢,第一贴..........
:smile:

未注册
2009-03-04, 20:11
输入format compact就可以了

wxw0827
2009-03-06, 10:27
file------preferences----command window-------右边有个text display------numeric display点下拉框,把loose改为 compact就可以了O(∩_∩)O~