MATLAB script replaced by generated MATLAB code

Hi all,
Recently I have been working on a MATLAB/Simiulink project and twice now have had my entire script wiped out and replaced by some generated MATLAB code that only contains a small fraction of the work I've done (and what is kept is formatted like it is in my workspace). This happens while I have Simulink open but am working in MATLAB. I am very confused and really don't want this to keep happening. I have pasted below what the generated script looks like. Please let me know if you have any advice! Thanks :)
% -------------------------------------------------------------------
% Generated by MATLAB on 12-Oct-2022 22:06:24
% MATLAB version: 9.11.0.1769968 (R2021b)
% -------------------------------------------------------------------
Ixx = 0.00022500000000000005;
Iyy = 0.00022500000000000005;
Izz = 2.5000000000000011E-5;
J = ...
[0.00022500000000000005 0 0;
0 0.00022500000000000005 0;
0 0 2.5000000000000011E-5];
RAAN = 10;
TA = 0;
ecc = 0.001;
h = 55759;
inc = 42;
l = 0.3;
m = 3;
w = 22;
wbE = [0.1; 0.1; 0.1];

댓글 수: 1

Hi John,
It may be useful to share more details on the generated files. It may also be usefule to share the formats (.m .mt etc) and the specific tools within MATLAB and Simulink you were using.

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

답변 (0개)

카테고리

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

제품

릴리스

R2021b

질문:

2022년 10월 13일

댓글:

2023년 9월 7일

Community Treasure Hunt

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

Start Hunting!

Translated by