Info

この質問は閉じられています。 編集または回答するには再度開いてください。

How to avoid writing varying number of loops?

1 回表示 (過去 30 日間)
Mahdi
Mahdi 2013 年 8 月 16 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
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
  1 件のコメント
dpb
dpb 2013 年 8 月 16 日
doc ndgrid

回答 (0 件)

この質問は閉じられています。

タグ


Translated by