write a matlab function that will take 4x4 matrix as a input

write a matlab function that will take (4x4) matrix as a input argument and will return a (1x4) array containing the averages of each of the four colum of the input matrix.

Solution

Array = input (\'Enter the 16 values in [1,3,5...] form :\')

M = matrix (4,4,Array)

m = mean(M)

disp(\'Average of elements in each column :\ \')

disp(m)

write a matlab function that will take (4x4) matrix as a input argument and will return a (1x4) array containing the averages of each of the four colum of the i

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site