How to define a range to iterate with gaps in between?
6 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
mathango
il 3 Mag 2016
Risposto: Azzi Abdelmalek
il 3 Mag 2016
Hi,
Is it possible to do iteration with gaps in simple and fast format in matlab.
For example,
i= 1:10;
j= 15:20;
k= 25:30;
goal => iterate M from 1 to 30 except at the gaps between 10 : 15, and 20 :25 .
The purpose of this is to avoid calling a function to iterate three times.
0 Commenti
Risposta accettata
Più risposte (1)
Vedere anche
Categorie
Scopri di più su Get Started with MATLAB in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!