Hi all, I want help regarding loops in MATLAB, such that each iteration take values from a data set with the step size of 5? Which loop is most suitable?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Ayisha Nayyar
am 1 Nov. 2019
Kommentiert: Ayisha Nayyar
am 1 Nov. 2019
Hi all, I want help regarding loops in MATLAB, such that each iteration take values from a data set with the step size of 5? Which loop is most suitable?
Please share some sample code.
0 Kommentare
Akzeptierte Antwort
Bhaskar R
am 1 Nov. 2019
For step size of 5
values = 1:5:n; % n is the required length of your data
Refer the documenations on loops and colon operations
Hope helps you
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Loops and Conditional Statements finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!