Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Q- 从 0:limit-1 创建一个“计数器”(例如,如果您选择 3,它将显示 0、1、2)。计数器的长度在程序中没有确定,应该在运行时确定,并且输入可以彼此不同
不太清楚你的意思......但是
for i = 0:limit-1 disp(i) end
将显示 0,1,2 ... limit-1