matlab中for k=1:k什么意思啊

2025年03月01日 10:27
有2个网友回答
网友(1):

k=5;
for k=1:k
disp(k);
end

执行结果:
1

2

3

4

5

看明白里吧。。

网友(2):

后面那个k应该为大写的K(也就是一个常数)吧?