Info

此问题已关闭。 请重新打开它进行编辑或回答。

how can i generate??

1 次查看(过去 30 天)
mukim
mukim 2013-1-17
关闭: MATLAB Answer Bot 2021-8-20
if i=1:3 is equal, i=[1 2 3]
then how can i generate this...
output sample, i=[1 2 3 7 8 9 13 14 15 16]

回答(2 个)

Matt J
Matt J 2013-1-17
i=[1:3,7:9,13:16]
  2 个评论
Matt J
Matt J 2013-1-17
mukim Commented:
how can i will be able to generate this type of loop??
for i=1:3, 7:9
%%statement
end
Matt J
Matt J 2013-1-17
for i=[1:3, 7:9]
%%statement
end

mukim
mukim 2013-1-17
how can i will be able to generate this type of loop??
for i=1:3, 7:9
%%statement
end

此问题已关闭。

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by