Workspace Updates when script is complete?

8 views (last 30 days)
Does the Workspace only update when the script is completed running? I have this very simply program to test. If I manually clear the workspace at the command line and then run this script, the workspace doesn't list the variables x and y until the entire script is complete.
x = 3
y = 4
Similarly, if I manually (via command line) populate some variables in the workspace and then run the following, again the workspace isn't cleared until script is complete.
The pauses are used to visually confirm when the workspace is updated, which in both cases is when the command prompt returns. I am using the most recent trial version.

Accepted Answer

Walter Roberson
Walter Roberson on 15 Jan 2022
Generally speaking, there would be too much overhead to continually update the workspace browser when you are not stopped.
MB on 16 Jan 2022
Good suggestions I'll research them from here. Thanks.

Sign in to comment.

More Answers (0)


Find more on Variables in Help Center and File Exchange


Community Treasure Hunt

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

Start Hunting!

Translated by