Disable figure generated code in Matlab R2023b

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?

 Accepted Answer

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.

5 Comments

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.

Sign in to comment.

More Answers (0)

Categories

Products

Release

R2023b

Community Treasure Hunt

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

Start Hunting!