Array indices must be positive integers or logical values.

8 vues (au cours des 30 derniers jours)
Rodrigo Pena
Rodrigo Pena le 1 Déc 2020
Commenté : Rodrigo Pena le 1 Déc 2020
Hello all, how are you?
I am trying to write a program to calculate some aerolasticity stuff, here is what I have so far:

Réponse acceptée

Ameer Hamza
Ameer Hamza le 1 Déc 2020
Modifié(e) : Ameer Hamza le 1 Déc 2020
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 commentaires
Rodrigo Pena
Rodrigo Pena le 1 Déc 2020
Perfect, thanks !

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Logical dans Help Center et File Exchange

Produits


Version

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by