script to call functions
Mostrar comentarios más antiguos
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.
Respuesta aceptada
Más respuestas (1)
Walter Roberson
el 22 de Feb. de 2011
funs = {@fun1, @fun2, @fun3, @fun4, @fun5, @fun6, @fun7};
s = input('insert the function number: ');
funs{s}()
Categorías
Más información sobre Just for fun en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!