Write a MATLAB program that finds the maximum element in a m
Write a MATLAB program that finds the maximum element in a matrix. You program should first ask users to enter the matrix.
Solution
%finding the maximum value element in matrix
fprintf(\'enter the matrix B\')
A=input(\'enter the matrix A\')
q=max(max(A));%maximum element in matrix
fprintf(\'maximum element matrix is :\')
disp(q)
