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)

 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 el

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site