필터 지우기
필터 지우기

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개)

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by