for n=linspace(1,3,6)循环次数是:
查看答案
for n=1:3:6循环次数是:
A. 1
B. 3
C. 6
D. 2
>> s=8;>> switch scase {9,10}s1=‘优秀'case {8,7,6}s1=‘合格'otherwises=‘不合格'end输出结果为
A. 合格
B. S1=‘优秀’
C. S1=‘合格’
D. Error
下列程序输出结果为>> str='The result is 100.';>> len=length(str);>> s=[];>> for n=1:lenif str(n)>'9'|str(n)<'0' breakends=[s str(n)];ends
A. ‘’
B. [ ]
C. '100'
D. ‘The result is’
下列程序输出结果为>> str='The result is 100.';>> len=length(str);>> s=[];>> for n=1:lenif str(n)>'9'|str(n)<'0' continueends=[s str(n)];ends
A. s=[ ]
B. ‘The result is’
C. s=100
D. 100