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

2025-03-01 10:27:11
推荐回答(2个)
回答1:

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

执行结果:
1

2

3

4

5

看明白里吧。。

回答2:

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