Workspace not updating to show new variables automatically

조회 수: 120 (최근 30일)
Alex B
Alex B 2024년 11월 20일 19:11
댓글: Rob Jacobs 2024년 12월 2일 13:31
In the current version of MATLAB 2024b the workspace no longer seems to update to show new variables, requiring me to manually refresh the workspace variable list to see them. In older versions this was automatic. I've searched through the settings menu and can't seem to find a corresponding setting, but I'm not sure if I'm just looking for the wrong thing/in the wrong place.
I can reproduce this bug in 2024b by opening a workspace and running any command which assigns/changes a variable:
a = 5; % the workspace still shows as having no variables; updating fixes it
a(end+1) = 10; % workspace still shows a = 5
clear a % workspace still shows a = 5
It doesn't matter if I do this in a script or from the command line. This behavior does not persist on other versions for me.
(I'm only posting this because every other question I found on here relates to people being confused about variable scoping, which is not my problem)
  댓글 수: 6
Alex B
Alex B 2024년 11월 26일 15:15
Try disabling the new desktop beta for now, thats what fixed it for me
Rob Jacobs
Rob Jacobs 2024년 12월 2일 13:31
To continue using the New Desktop Beta, you could also try the following as a temporary workaround:
>> internal.matlab.desktop_workspacebrowser.RemoteWorkspaceBrowser.getInstance()

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품


릴리스

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by