I have a main script in MATLAB in which I am calling four different functions each has been defined in a separate script.
function[] = main() [par_1] =function_1(inp_1); [par_2] = function_2(inp_2); [par_3] = function_3(inp_3);end
Now I want to define here that while for example function_1 is being called and is running, by pressing a key, for example 'esc', function_1 stops and return and function_2 starts running and so on. I don't know how to do this in MATLAB.
Best Answer