I changed the values of the parameters, but the values of the workspace parameters did not change until I restarted matlab

조회 수: 1 (최근 30일)
I changed the values of the parameters, but the values of the workspace parameters did not change until I restarted matlab.
R2023a.
  댓글 수: 4
Zhihao Sheng
Zhihao Sheng 2023년 6월 21일
In a script, I set a=10, then I run the script, then I change a=5 in the script, then I run the script again and it shows a=10.
dpb
dpb 2023년 6월 21일
Again, either your script is actually a function or you're not doing what you think you're doing...but unless you post the actual script and the results, we have no way to begin to see what you've done wrong. Just telling us something doesn't help at all remotely...

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

채택된 답변

Shuba Nandini
Shuba Nandini 2023년 4월 26일
Hello,
It is my understanding that variables in MATLAB Workspace are not getting updated until you restart the MATLAB. There could be few reasons due to which variables will not be updated in the workspace.
Here are the few threads which can help you to resolve this issue:
I hope this helps you to update the parameters in the MATLAB Workspace!

추가 답변 (0개)

카테고리

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

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by