Write a MATLAB program that prompts the user to enter a Matrix (A) and calculate the - (a) maximum element in each row without using ‘max’ function. (b) maximum element in each column without using ‘max’ function.

1 view (last 30 days)
i have a homework and i cant solve this problem so please help me if anyone know how it solve Write a MATLAB program that prompts the user to enter a Matrix (A) and calculate the - (a) maximum element in each row without using ‘max’ function. (b) maximum element in each column without using ‘max’ function.

Answers (1)

Image Analyst
Image Analyst on 22 Dec 2014
Did you search the newsgroup and find solutions, like this for example:
And, of course you could always take the first and last elements after you do a sort(thisRow, 'Descend') on each row.

Categories

Find more on Loops and Conditional Statements in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!