# How to find the maximum element among the minimum elements in the columns in matrix m:n? With using loops.

1 view (last 30 days)

Show older comments

It seemed simple from the beginning, but I got confused. Can anyone show a script that will do this?

##### 2 Comments

### Answers (1)

Guillaume
on 25 Mar 2020

There's never any need for a loop for things like that. Loops usually complicate the code in matlab.

maxofcolmin = max(min(massive, [], 2)); %return the maximum of the minimum across the columns of massive

##### 2 Comments

Guillaume
on 25 Mar 2020

### See Also

### Categories

### Community Treasure Hunt

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

Start Hunting!