Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

How to do this loop?

1 visualización (últimos 30 días)
Aswin Sandirakumaran
Aswin Sandirakumaran el 18 de Mayo de 2018
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
I have a vector A = [4,2,3]
for 1:
do this
end
how to make this for loop execute as number of times as its value in A. eg: first the for loop should check A(1) = 4 -> so for loop should execute 4 times. second A(2) = 2 -> do the for loop two times. three A(3) = 3 -> do the for loop three times. how to implement this idea?

Respuestas (0)

La pregunta está cerrada.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by