How to solve Index in position 1 exceeds array bounds (must not exceed 1).

1 回表示 (過去 30 日間)
vishnuvardhan naidu tanga
vishnuvardhan naidu tanga 2020 年 6 月 18 日
コメント済み: David Hill 2020 年 6 月 19 日
Hello,
When I am trying to run my code in matlab 2020a version I am getting this error. but when I am running the same code in matlab 2018b version, it runs normally. why am i getting this error and how can i solve this error. Please guide me.
With regards,
  6 件のコメント
sapan agha
sapan agha 2020 年 6 月 19 日
hi i need help please help me
sapan agha
sapan agha 2020 年 6 月 19 日

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

採用された回答

David Hill
David Hill 2020 年 6 月 19 日
You could always store it as a vector in the size you need it.
p0_A_SOEC_INIT_out=p0_A_SOEC_INIT_out*ones(1,size_you_need);
  2 件のコメント
vishnuvardhan naidu tanga
vishnuvardhan naidu tanga 2020 年 6 月 19 日
I tried but it wont work with my model
David Hill
David Hill 2020 年 6 月 19 日
Without seeing parts of your code, I don't think I can help you further.

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

その他の回答 (0 件)

カテゴリ

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