Solved
Generally you would use the vectorize operator (see operators item in the tab, then under Vector and Matrix) for this job, but unfortunately, because max() and min() functions accept more than 2 arguments vectorization does not work for them.
So you have to write a small program:

Success!
Luc

