Array indices must be positive integers or logical values.

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

Problem Solved ! Thank you so much !
I will have more questions as I build my program... Can I post it here instead of creating new topics ?
Ameer Hamza
Ameer Hamza 2020년 12월 1일
편집: Ameer Hamza 2020년 12월 1일
You can post a new question and paste the link in the comment. I will get the notification, and if I am unable to answer, someone else probably will.
Perfect, thanks !

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Entering Commands에 대해 자세히 알아보기

제품

릴리스

R2020b

질문:

2020년 12월 1일

댓글:

2020년 12월 1일

Community Treasure Hunt

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

Start Hunting!

Translated by