Can't understand you I'm getting this error when using a for loop to add two arrays

1 回表示 (過去 30 日間)
  1 件のコメント
Cameron
Cameron 2023 年 2 月 16 日
1) We don't know what the function get_AtmosProperties does.
2) It would help also if you posted your code instead of a screenshot of it.
3) Can you attach a .mat file?

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

採用された回答

Anacleto Capetta
Anacleto Capetta 2023 年 2 月 16 日
Think I've solved my own problem.
The outputs of the function getAtmosProperties were coming out as scalar when they should have been outputted into their relavance index in arrays.

その他の回答 (1 件)

Kevin Holly
Kevin Holly 2023 年 2 月 16 日
One of you variables (P_Pa, p_Pa, or q_Pa) only has one row. So, when you iterate with the for loop, you get an error when i = 2. Check the size of your variables.

カテゴリ

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

タグ

製品


リリース

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by