write an matlab function that will take a (4 × 4) matrix as an input argument, and will average the values of each row, inputting the found values on the main diagonal of the matrix. in matlab
main.m
functionavgValues = averageRowsToDiagonal(matrix) avgValues = diag(mean(matrix, 2));
end