Problem 55250. Find the minimum of the column-maximums of a matrix
Given a matrix A, find the maximum value of each column, then return the smallest of those maximum values (ie return the minimum of the column maximums).
A = [5 3 4 3;1 2 6 3;1 1 4 4];
m = minimax(A)
m =
3
Note that your function should work for matrices with one row or column (ie vectors) and scalars (in which case m = A).
Solution Stats
Problem Comments
-
2 Comments
Neha Shaah
on 22 Oct 2022
Test suite 9 fails - min logic used
Matt Tearle
on 24 Oct 2022
@Neha Shaah: how so? If the input is a row vector, the column maximums will be the elements themselves. Hence the minimum will be the minimum of the input vector itself.
Solution Comments
Show commentsGroup

Easy Sequences Volume V: Fibonacci Obsession
- 10 Problems
- 1 Finishers
- Cricket - Sort Batters by Distance Run
- Cricket - Average Partnership Contribution
- Cricket - How Much More to Beat Bradman?
- Cricket - Career Batting Statistics
- Cricket - Career Bowling Statistics
- Cricket - Represent Average in "Dulkars" and "Ses"
- Cricket - Peak Batting Average
- Cricket - Report the Result (Part I: Limited Overs)
- Cricket - Most Frequent Bowler-Batter Wicket Combinations
- Cricket - You Miss, I Hit (Rank Bowlers by Proportion of Bowled and LBW Wickets)
- Cricket - Report the Result (Part II: Test Matches)
- Cricket - Is It LBW?
Problem Recent Solvers484
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!