MATLAB: External function calling inside another function matlab function Can an external function created be called inside another function.Please explain with an example. Thanks. Best Answer Definitely yes, provided the path of the external function (m file/m script) exists in the matlab path..mfunction script1(arg1, arg2, arg3)........x=script2(arg4,arg5);script2.mfunction y=script2(arg6, arg7, arg8)y=arg6 + arg7... Related SolutionsMATLAB: How to get output in a function to be used in another function Function Afunction Data = A % Your logicendFunction Bfunction B(InputData) % Your logicendMain script or function% Call function A & collect DataRecData = A;% Call function B by passing data as inputB(RecData);See Scripts and Functions, Calling Functions MATLAB: Call a script via a function Look at this >> cssm ans = Greeting from the scriptwhere cssm is the function function out = cssm() cssm_script endand where cssm_script is the script % cssm_script out = 'Greeting from the script';The script is running in the workspace of the calling function. The effect is the same as if the code of the script was copy&pasted into the calling function. Related QuestionScript to call functionsHow do you call a nested functionHOW TO Summation of FunctionsHow to use one function in another functionIs there a way to run many anonymous functions simultaneously
Best Answer