I just updated from R2022a to R2023b and now whenever I zoom in a plot figure, a new subwindow opens with the title "Generated Code". I've been looking in the changelog and I think "Figure Code in MATLAB Online: Generate code from Property Inspector" is what is causing the trouble. I can see that I can disable it manually by clicking Figure->Show code (it is enabled by default). How can I have this property disabled by default for all the plots?

 채택된 답변

Adam Danz
Adam Danz 2024년 2월 15일

1 개 추천

The subwindow you are describing only appears in the R2023b beta release found on the File Exchange. If you turn off the new desktop and revert back to the standard R2023b release, you won't see the subwindow appear.

댓글 수: 7

I just tried switching back to the original desktop and the subwindow does not appear anymore as you said. However, I'd like to keep the new desktop as long as there is a way to have the 'Figure Generated Code' option disabled by default. Is it possible to do it or it can't be done at the current state of the beta desktop? Thank you.
Thank you for giving the new desktop a whirl and sharing your feedback. At the moment, the beta desktop doesn't have an official switch to disable the subwindow by default. Note that this default behavior is limited to the R2023b beta desktop only.
Thank you for your answers, Adam. I think I'm gonna leave a suggestion for the Matlab Desktop team and mark this question as resolved. Thank you again.
This happens in the 2024a release and is VERY ANNOYING! I just want to create a figure but the figure gets squished and this empty code generation is there WHICH I DO NOT WANT!
If anyone is seeing this behavior in the 24a general release, please contact tech support and include instructions how to reproduce the problem. Feel free to include the URL of this thread.
Justin
Justin 2026년 3월 15일
I get this issue in regular 2023b release and it's driving me nuts.
Zoom in in a figure and figure resizes with a generated code panel appearing below it, which you then have to close (2 clicks) and maximise the figure again (another click).
MATLAB Version: 23.2.0.2459199 (R2023b) Update 5
If you are seeing this in a local installation of general release (e.g. not MATLAB Online and not a beta release), please contact tech support.

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Programming에 대해 자세히 알아보기

제품

릴리스

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by