Azzera filtri
Azzera filtri

Info

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

How to avoid writing varying number of loops?

1 visualizzazione (ultimi 30 giorni)
Mahdi
Mahdi il 16 Ago 2013
Chiuso: MATLAB Answer Bot il 20 Ago 2021
I want to evaluate a function of K variables each of them varying between 1:N. One way to do this is writing K loops and varying variables accordingly. I want to know is there any other way to do this without K loops?
Since I want to write a MATLAB function doing these evaluations for all possible K's, it isn't possible to write varying number of loops in one function so what should I do? Thanks

Risposte (0)

Questa domanda è chiusa.

Community Treasure Hunt

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

Start Hunting!

Translated by