MATLAB need help in writing mean absolute error code

287 Views Asked by At

I am using this code but it is throwing error- Undefined function 'symsum' for input arguments of type 'double'.

%Mean Absolute Error;

Func=zeros(size(V,1),1);

E_mae=zeros(size(V,1),1);

Func(i,1)=abs(Iref(i,1)-Icalc(i,1))/size(V,1);

E_mae(i,1)= symsum(Func(i,1),i,1,size(V));
1

There are 1 best solutions below

0
On

The function symsum(.) requires i to be a symbolic variable.