Question about Julia zeros matrix?

@liuyxpp @sostock I have another question. How can I transform this matlab code into Julia.

>> val = zeros(3, 3);
>> row = zeros(3, 3);
>> A = [1 2 3; 6 5 1; 1 7 4]

A =

     1     2     3
     6     5     1
     1     7     4

[val(1, :), row(1, :)] = max(A)

val =

     6     7     4
     0     0     0
     0     0     0


row =

     2     3     3
     0     0     0
     0     0     0