How do you print output of fitlme to a text file?

I have run a mixed linear model using fitlme. I want to write all of the output printed in the workspace when typing lme to a text file.
How can I do this?
Thanks
Peter

1 Comment

Thank you so much, this is exactly what I was looking for!

Sign in to comment.

 Accepted Answer

Use the diary command. Example:
diary('lmeDetails.txt')
lme
diary off

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!