Azzera filtri
Azzera filtri

Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

How to do this loop?

1 visualizzazione (ultimi 30 giorni)
Aswin Sandirakumaran
Aswin Sandirakumaran il 18 Mag 2018
Chiuso: MATLAB Answer Bot il 20 Ago 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?

Risposte (0)

Questa domanda è chiusa.

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by