script to call functions
이전 댓글 표시
i would like to script a main.m that will offer choices of functions to run, 7 in all, where each function correlates to a number, 1:7.
채택된 답변
추가 답변 (1개)
Walter Roberson
2011년 2월 22일
funs = {@fun1, @fun2, @fun3, @fun4, @fun5, @fun6, @fun7};
s = input('insert the function number: ');
funs{s}()
카테고리
도움말 센터 및 File Exchange에서 Just for fun에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!