On Tuesday, October 6, 2015 at 4:27:40 PM UTC-4, Rosangela Oliveira wrote:
>
> The idea is to read each matrix nxm and  to replace the max value=1 and 
>  min value=0 in case when max and min its the same value, the first receive 
> 1 and the second recive 0.
>
 
Just write loops.  It will be way less convoluted, and way faster, than any 
construction using find etc.

With Matlab and Python, every programming problem is an exercise in mining 
the standard library for (you hope) just the right functions for your 
problem, because any code that you write yourself will be slow.  Julia 
doesn't have that problem, and often the most straightforward code is also 
the best code.

Reply via email to