I'm using fminsearch for an optimization problem.
I use 100 random inputs and run fminsearch hoping that it doesn't get trapped in local minimas.
Sometimes, fminsearch takes more than usual. I suspect this is because of some bad behavior of some function in my problem that I haven't overseen earlier. I am wondering if I can somehow display the x (input) that fminsearch is working on right now (in real time). This will help me to find out why my problem takes longer around this particular point and if there is some issue with how I defined my problem, correct it (with some if,else,etc).