Array indices must be positive integers or logical values.

2 ビュー (過去 30 日間)
Rodrigo Pena
Rodrigo Pena 2020 年 12 月 1 日
コメント済み: Rodrigo Pena 2020 年 12 月 1 日
Hello all, how are you?
I am trying to write a program to calculate some aerolasticity stuff, here is what I have so far:

採用された回答

Ameer Hamza
Ameer Hamza 2020 年 12 月 1 日
編集済み: Ameer Hamza 2020 年 12 月 1 日
I am fine, hope you are fine too!
In MATLAB, there is no implicit multiplication. In the line
f22 = ......
There is a missing multiplication operator after 'a'. It should be like this
8*a*(1i ...
%^ this is missing
Also, it is better to write your code in a MATLAB script or function: https://www.mathworks.com/help/matlab/matlab_prog/scripts-and-functions.html. MATLAB gives much clear error message which makes it easy to debug the code.
  4 件のコメント
Rodrigo Pena
Rodrigo Pena 2020 年 12 月 1 日
Perfect, thanks !

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

その他の回答 (0 件)

カテゴリ

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

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by