Hi I want to find the RMSE for near infrared data but the the predicted data has dimensions matrix 401×20 and the actual data has dimensions matrix 20*1 . I have try to use this equation r = sqrt( sum( (predicted(:)-actual(:)).^2) / numel(data) ) but I got error which is the dimensions of matrix must agree.
I Need the RMSE as fitness function of genetic algorithm
how can i solve this problem ? thank you so much
Best Answer