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

Community Treasure Hunt

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

Start Hunting!

Translated by