Is there in Julia something similar to min(X, Y) of Matlab where X and Y are matrices of same dimensions

Hi guys, just wondering if there is a function in Julia similar to

min(X, Y) (where X and Y are matrices of same dimension)

of Matlab. The result is a matrix of the same dimensions as X and Y with elements that are the minimum of the elements in X and Y in corresponding position.

Thank you very much in advance.

Cheers.

Ergnoor

min.(X,Y)
10 Likes

hi Sheehan Olver and thank you very much. Cheers. Ergnoor.

To give you more context, β€œany” function f in Julia that works for numbers, also works for arrays of numbers via the dot syntax f.(x,y,z,...)

7 Likes

@juliohm hi Julio and thank you very much for your help. Cheers Ergnoor.