Introduction - If you have any usage issues, please Google them yourself
This m-file allows you to export all text in the Command Window to a cell array of strings, each entry being a line of text from the window. The unparsed raw string is also available, if desired.
Operation is very simple- using the findjobj function (required for operation), this file looks for the appropriate object in the root window and gets text from it.
I was looking for a way to do this, particularly for error tracking in some software I maintain, and nobody seemed to have written up this method, so I present it here for you to use.
It s a bit slow, there is probably a quicker way of looking for a specific class- if so, let me know!