Why does Simulink delete code from matlab functions body?

21 views (last 30 days)
Alessandro Minerba
Alessandro Minerba on 15 Dec 2021
Edited: Sivani Pentapati on 26 Jun 2022 at 21:11
As described, Simulink sometimes randomly deletes the body code from matlab function blocks. Any attempt to bring back the deleted code is useless. Does anyone have the same issue?
(Matlab 2021 B release running)
  9 Comments
Alessandro Minerba
Alessandro Minerba on 11 Feb 2022
No way to recover the lost code. Just rewrite it or try to close the model without saving any update.

Sign in to comment.

Answers (2)

Andrea Mazzeo
Andrea Mazzeo on 28 Dec 2021
Same issue here. Seems to be common since my colleagues have encountered it too on multiple occasions.

Sivani Pentapati
Sivani Pentapati on 18 Jan 2022
Edited: Sivani Pentapati on 26 Jun 2022 at 21:11
Hi Alessandro,
The Development team is aware of this issue and has published a Bug Report Bug Reports (mathworks.com). Please visit the Bug Report to get the latest information on fixes and possible workarounds.
  7 Comments
Sivani Pentapati
Sivani Pentapati on 31 May 2022
Thank you for providing the information, I have brought this issue to the notice of the concerned people and I will get back to you.

Sign in to comment.

Products


Release

R2021b

Community Treasure Hunt

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

Start Hunting!