Filter löschen
Filter löschen

Index Problem in for loop

1 Ansicht (letzte 30 Tage)
Marcelo Boldt
Marcelo Boldt am 6 Okt. 2020
Kommentiert: Marcelo Boldt am 6 Okt. 2020
I am having a rather basic problem that I still cant figure it out.
I have two arrays: both have a 64x1 dimension but one is the result of a foor loop using angle as the index (alpha = 25:89). On the other hand the other array has been defined as follows (i = 1:64)
How can I multiply each variable of these arrays without getting the following error: Index in position 1 exceeds array bounds (must not exceed 64).
  4 Kommentare
Walter Roberson
Walter Roberson am 6 Okt. 2020
Search tag:"generalized for loop" for an description of how to proceed.
Marcelo Boldt
Marcelo Boldt am 6 Okt. 2020
I did it and it worked, Thanks!

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Loops and Conditional Statements finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by