how can i generate??

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 日

0 投票

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 日

0 投票

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

この質問は閉じられています。

タグ

質問済み:

2013 年 1 月 17 日

閉鎖済み:

2021 年 8 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by