I have a Matlab program which generates a set of very large structs as its output.
The structs are sufficiently large that I would like to be able to print the text repr
There's no default Matlab function for saving of struct in a file (not that I'm aware of, at least). But there is struct2File function on File Exchange.