write a function called calcrmse with 2 input vectors, checks to see if the vectors are the same size. in matlab
main.m
functionrmse = calcrmse(vector1, vector2)iflength(vector1) ~= length(vector2)
error('Input vectors must be of the same size');
end rmse = sqrt(mean((vector1 - vector2).^2));
end