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 件のコメント

Shree Charan
Shree Charan 2023 年 9 月 7 日
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 ExchangeMATLAB 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