SMath论坛 SMath Studio Questions How works for loop ? 1页(3条) How works for loop ? - for loop generates extra zeros - 消息 转到最后一个帖子 #1 已发布: 2019/4/19 10:09:59 inazuma 0个赞,共1个帖子。 组: User Hello,I'm a newbie in SMath, so maybe it's just a bad usage.Why the following for loop:I:=[5..10]for i € I xi := igenerate this result:x=[0 0 0 0 5 6 7 8 9 10]Thank you for your answer ! #2 已发布: 2019/4/19 10:51:58 Martin_B 22个赞,共84个帖子。 组: User You are assigning the values 5 to 10 to the 5th, 6th ...up to 10th element of the vector x.The first 4 elements are filled with zeros. 1位用户喜欢此帖子Davide Carpi 2019/4/20 05:37:00 #3 已发布: 2019/4/19 20:51:22 Jean Giraud 983个赞,共6,866个帖子。 组: User WroteWhy the following for loop: 1位用户喜欢此帖子Davide Carpi 2019/4/20 05:37:00 1页(3条) 有新帖 无新帖