Data structures for multiple variables

Im trying to create a data structure with 6 elements for 6 satellites i have modelled. when i call stat(1) it works, but when attempting to call an other stat, e.g stat(2), i get an error saying 'index exceeds matrix dimension'

3 件のコメント

Walter Roberson
Walter Roberson 2018 年 3 月 17 日
Your code has
stat(1).orbital_period_before;
before you have assigned a value to that field.
We cannot test your code because we are missing the values of some of the variables.
Christopher Maraj
Christopher Maraj 2018 年 3 月 18 日
編集済み: Walter Roberson 2018 年 3 月 18 日
here is the version of the code with the missing fields removed
Walter Roberson
Walter Roberson 2018 年 3 月 18 日
Undefined function or variable 'T1'.

回答 (0 件)

この質問は閉じられています。

タグ

質問済み:

2018 年 3 月 17 日

閉鎖済み:

2021 年 8 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by