在Matlab中`...`有什么作用? [英] what does `...` do in matlab?
本文介绍了在Matlab中`...`有什么作用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我是Matlab的新手,但我认为...
用于表示数组.但是,遵循以下几行代码证明我不知道该怎么做.有人可以给我一个线索吗?
I am new to Matlab but I thought ...
is used for expressing array. Following lines of code, however, proved that I had no idea what that does. Could anybody give me a clue?
str = sprintf('%s: sometext %d of %d, sometext %d [%d-other text %d]',...
GROUP(ID).Name,...
GROUP(ID).TurnNumber+1,...
GROUP(ID).MaxTurns,...
GROUP(ID).SetNumber,...
推荐答案
这是行继续字符串;基本上,这意味着将要遇到的行尾字符视为不存在.
It's the line continuation string; basically, it means treat the end of line character you're about to encounter as if it didn't exist.
由于换行无效:
str = sprintf('%s foo',
'foo');
有效,因为您告诉Matlab继续阅读:
Valid because you tell Matlab to keep reading:
str = sprintf('%s foo', ...
'foo');
这篇关于在Matlab中`...`有什么作用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文