Info
This question is closed. Reopen it to edit or answer.
Index exceeds matrix dimensions. Error in LT_03 (line 98)
1 view (last 30 days)
Show older comments
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.
Answers (1)
KSSV
on 22 Oct 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 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!