Here's the function that I want to write out in MATLAB:
For my ŷ
and y
, I am using the indices of rm
and m
, respectively. Here's what I have so far:
mse = 1/n *(symsum(((rm{i}-m{i})^2),i,1,n));
I am getting this error:
Error in
pcmencdec_hw2
(line 100)mse = 1/n *(symsum(((rm{i}-m{i})^2),i,1,n));