MATLAB Answers

Using fminsearch I want to plot the model function whose parameters I'm fitting at each iteration without the figure window stealing focus. How do I do this?

2 views (last 30 days)
Ralf Heilmann
Ralf Heilmann on 27 May 2020
Edited: Matt J on 28 May 2020
Using fminsearch I want to plot the model function whose parameters I'm fitting at each iteration without the figure window stealing focus. How do I do this?

  0 Comments

Sign in to comment.

Answers (1)

Matt J
Matt J on 27 May 2020
Edited: Matt J on 27 May 2020
Stop invoking whatever command it is (figure(), axes() ?) that you are using to bring the figure into focus. Calling the plot command alone would not be responsible for whatever it is you are seeing. It will not shift focus to the figure.

Tags


Translated by