Info
Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.
Index exceeds matrix dimensions. Error in LT_03 (line 98)
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi. I created a program that averaged hourly weather data over 15 years. When trying to start a calculation, MATLAB gives the following error:
Index exceeds matrix dimensions.
Error in LT_03 (line 98)
Fk(i)=(f01(i)+f02(i)+f03(i)+f04(i)+f05(i)+f06(i)+f07(i)+f08(i)+f09(i)+f10(i)+f11(i)+f12(i)+f13(i)+f14(i)+f15(i))/15;
I added links to the corresponding files to the directory. What is the problem, please tell me.
Antworten (1)
KSSV
am 22 Okt. 2020
Note that for your formula given you need not to use loop...you can striaght away use:
Fk =(f01+f02+f03+f04+f05+f06+f07+f08+f09+f10+f11+f12+f13+f14+f15)/15;
0 Kommentare
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!