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?

1 visualización (últimos 30 días)
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.

Respuesta aceptada

Bhaskar R
Bhaskar R el 1 de Nov. de 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

Más respuestas (0)

Categorías

Más información sobre Loops and Conditional Statements en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by