This worked for me:
format longG
https://www.reddit.com/r/matlab/comments/9hczjy/how_to_get_matlab_to_stop_displaying_things_in/