# MATLAB: How to avoid going through unnecessary functions when tracing fmincon in Matlab to findout it call the right objective and constriant functions.

fminconOptimization Toolboxtrace

I want to trace fmincon function in Matlab to get sure it reads the objective function and constraints function from the right files. The problem is when I step in the fmincon function, it goes to other functions that are unnecessary for my tracing aim. I was wonder to ask, does anyone know which lines should I neglect in tracing to only find the part that How to avoid unnecessary functions for tracing of fmincon Matlab call my objective function and constraints function.

which myObjective
which myObjective -all