While a script function is running, the results produced by fprintf
or disp
commands do not show in the terminal, only when the execution ends (or it is stopped) then they all appear. fflush
solves the problem, but it's tedious to use after each print. Is there any way to auto-flush to the terminal?
Using version 3.8.1.