主题:matlab中的省略号如何用呢?
yqx1985
[专家分:30] 发布于 2007-12-14 13:01:00
大家好,我想问一个如题的问题
我在编程时,想用省略号来解决100多项的逐次写入,但是不知道省略号如何用,希望大虾们给举个例子好吧?
回复列表 (共6个回复)
沙发
ruanqiang [专家分:30] 发布于 2007-12-14 17:04:00
。。。是表示续行的
板凳
windfoxe [专家分:70] 发布于 2007-12-15 09:12:00
...就是你这行写太多了,不想往下写,希望格式统一,或看着方便,于是重新开一行来写。
3 楼
windfoxe [专家分:70] 发布于 2007-12-15 09:15:00
省略号...
的意思是...
这样写...
程序也不报...
错
4 楼
yqx1985 [专家分:30] 发布于 2007-12-15 11:58:00
汗!
有个例子就好了
5 楼
blivfate [专家分:720] 发布于 2007-12-26 13:44:00
prompt={'Enter the Numerator Polynomial',...
'Enter the Numerator-Order Polynomial',...
'Enter the Denominator Polynomial',...
'Enter the Denominator-Order Polynomial'};
name='Input Gc(s)';
numlines=1;
defaultanswer={mat2str(Gc.n),mat2str(Gc.no),...
mat2str(Gc.d),mat2str(Gc.do)};
ans=inputdlg(prompt,name,numlines,defaultanswer);
还有问题联系我:jonpong@yahoo.cn
MY Blog: http://hi.baidu.com/pengjun
6 楼
yqx1985 [专家分:30] 发布于 2008-01-08 22:32:00
谢谢大家
我来回复