Can MATLAB workspace spreadsheets be updated while in a loop?
Ältere Kommentare anzeigen
I have a differential evolution algorithm running in the bg, I want to sometimes pop in and look at the populations and fitness values, is there a way to do it without stopping the code with a breakpoint or without printing it to the command window?
2 Kommentare
madhan ravi
am 24 Aug. 2018
could you upload your code?
Arthur Nascimento
am 24 Aug. 2018
Akzeptierte Antwort
Weitere Antworten (1)
Steven Lord
am 23 Aug. 2020
0 Stimmen
As of release R2016a there is a button in the Editor that lets you pause running code and enter debug mode. It may take a little time to pause (if MATLAB is inside a call to a built-in function) and you may not pause exactly in the function or on the line you expect, but then you can use the debugging tools to step through the code to the place where the computations you want to check are performed.
1 Kommentar
Walter Roberson
am 23 Aug. 2020
Though the original question asked not to use the debugger.
Kategorien
Mehr zu Loops and Conditional Statements finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!