MATLAB: How to See the Long Format in the Variables Window

long format in the variables window

How to see the value of a variable in the “Variables Window” in long format?
Even if I call “format long” and see the value in Command Window in its long format, I still see the variable in short format in the Variable Window, unless I double-click on it! What’s the solution?
A = pi
In the Command Window: A = 3.141592653589793
In the Valuables Window: A = 3.1416

Best Answer

"format" only affects the command window. You can change the default for the variable browser by going into Preferences->Variables