Why does Simulink delete code from matlab functions body?
조회 수: 12 (최근 30일)
이전 댓글 표시
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
Ben MacCallum
2022년 1월 17일
편집: Ben MacCallum
2022년 1월 17일
I have experienced this problem time and time again since upgrading to 2021b. I have lost the code within several different MATLAB Function blocks after saving and reopening the model. This is not specific to one model and it only happens occasionally, but after the code is lost, it never reappears, no matter how many times the model is closed and reopened. I would like to know if there is a way to recover the lost code.
답변 (2개)
Andrea Mazzeo
2021년 12월 28일
Same issue here. Seems to be common since my colleagues have encountered it too on multiple occasions.
댓글 수: 0
Sivani Pentapati
2022년 1월 18일
편집: Sivani Pentapati
2022년 6월 26일
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.
댓글 수: 8
Sivani Pentapati
2022년 5월 31일
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.
Dr. Fernando Viadero-Monasterio
2022년 10월 19일
Thank you for your help, I will update Matlab and see if it happens again. In my case, this problem only shows up when I am calling Simuling externally from the vehicle simulation software CarSim
참고 항목
카테고리
Help Center 및 File Exchange에서 Event Functions에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!