How to call a function m-file within another m-file
조회 수: 3 (최근 30일)
이전 댓글 표시
How can I call a separate function m-file within a for-loop of another m-file? Both are saved in the same path.
댓글 수: 0
채택된 답변
Fangjun Jiang
2011년 9월 30일
Just call that function. If you have a function called myfun defined in myfun.m, you can call it anywhere in another m file.
a=1;
for k=1:3
myfun;
end
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!