MATLAB: Script to call functions basicfunctionmain.mnew user 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. Best Answer function mains=input('insert the function number: ')switch scase 1fun1case 2fun2case 3fun3case 4fun4case 5fun5case 6fun6case 7fun7otherwisedisp('Error, you must insert number from 1 to 7')end Related SolutionsMATLAB: HOW TO Summation of Functions fun3 = @(x) fun1(x) + fun2(x) MATLAB: How to acquire the calling function in an object Look at the "dbstack" object:callingStack = dbstack Related QuestionA function insdie a switch caseI know this is an invalid expression on line 9. How to correct this error? Also, what error is this exactly? Matlab displayed multiple possibilities when trying to correct it.Fzero of two functions subtractedSwitch from one case to anotherHow to call .m file
Best Answer