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