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]

Risposte (2)

Matt J
Matt J il 17 Gen 2013

0 voti

i=[1:3,7:9,13:16]

2 Commenti

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

0 voti

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

Questa domanda è chiusa.

Tag

Richiesto:

il 17 Gen 2013

Chiuso:

il 20 Ago 2021

Community Treasure Hunt

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

Start Hunting!

Translated by