I am trying to build a matlab app which uses the ga function for genetic optimization. It is possible to define an own plotfcn (in this case plotnd) which is called every time a generation is built.
options = optimoptions('ga');
options = optimoptions(options,'PlotFcn', @plotnd);
I use this function to plot the best individual inside of my matlab app UIAxes object:
function state = plotnd(options, state, flag)
app = get(findall(0, 'Name', 'MyMatlabApp'), 'RunningAppInstance');
ax = app.OptimizationPlot;
The function plotnd is called and the Data (Data.X and Data.Y) is plotted correct in my matlab app.
However, everytime the plotnd function is called, matlab opens a UI Figure populated with a stop and a pause button.
Is there any way, that matlab is not opening this figure? I want to create my own stop and pause buttons within my matlab app.
Thank you in advance!