Index exceeds the number of array elements (1)

2 ビュー (過去 30 日間)
Rezvan Amiri
Rezvan Amiri 2020 年 8 月 12 日
編集済み: Walter Roberson 2024 年 9 月 12 日
Hi, I'm writing a code for simulink model. But when i run code, it popup this error . How can i solve this problem.
Index exceeds the number of array elements (1).

回答 (1 件)

Himanshu
Himanshu 2024 年 9 月 12 日
Hey Rezvan,
I ran your code in R2024a, and I did not see any error. If you are facing this issue in a specific release, then you can try upgrading to a newer version of MATLAB.
To address the error in a specific release, please visit the following page to learn how to submit a technical support request with MathWorks:
  1 件のコメント
Walter Roberson
Walter Roberson 2024 年 9 月 12 日
編集済み: Walter Roberson 2024 年 9 月 12 日
I checked on R2020b (since the user was most likely using R2020a at the time of the post.) I confirm that the error message shows up.
I also get the error in R2024b.
Unfortunately I do not know how to debug the problem.
R2024b also reports
Warning: Simulation results could be inaccurate because the specified Reactance and Time constant values are resulting in an inconsistency in the calculation of the fundamental (internal) parameters of the model. Replace the 'NE39bus2_PQ/G10/G10' block in your model with a Synchronous Machine pu Fundamental block and provide the Stator, Field, and Dampers parameters.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeMatrix Indexing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by