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!