How can I check which function called my function 'myfun' within the function itself in MATLAB?
Mostrar comentarios más antiguos
If I have two functions f1 and f2 and want to know which one of f1 and f2 called myfun from the function itself. Is there a function that checks for this. The reason I need this is for example in myfun:
function myfun
{if (f1 called myfun)
set c = 1;
elseif (f2 called myfun
set c =2)}
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Develop Apps Using App Designer en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!