这是我的八度脚本:
aReal=(dlmread('082023.csv')(2:end,2:9));
aForcast=(dlmread('082023.csv')(2:end,12:19));
difference= aReal-aForcast;
squareOfDifference=difference.*difference;
sumOfSquareOfDifference=sum(squareOfDifference);
meanSquareDeviations=sumOfSquareOfDifference/length(aReal);
rootMeanSquareDeviation=sqrt(meanSquareDeviations);
这保存为working.m
使用命令执行时
run working.m
它工作但现在返回错误:
A(I,J): column index out of bounds; value 19 out of bound 18
error: called from '067bct521.m' in file /home/shaardul/Desktop/Acsv/working.m near line 23, column 9
error: called from:
error: /usr/share/octave/3.6.4/m/miscellaneous/run.m at line 55, column 7