Computer Vision News - May 2016
Trick An alternative to this script is offered by the use of Matlab's internal command 'keyboard‘, which achieves a similar goal (though it returns much less info). Place the 'keyboard' command anywhere in your m file wherever you want to halt execution and get command line control, allowing you to examine function variables and try out things within the function's workspace. Return to the flow by typing 'return' (the word, not the keystroke) on the command prompt. This keyboard command actually preceded the option to have breakpoints in codes: it was used before Matlab came out with any functional script editor. Ah, the good old days! A further alternative that could be suitable is to save all breakpoints by creating a breakpoint definition file, as suggested here . COMPUTER VISION NEWS 9 “ How to prevent the disappearance of previously set breakpoints in Matlab ”
Made with FlippingBook
RkJQdWJsaXNoZXIy NTc3NzU=