<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html><body>
<p>Hello Samuel,</p>
<p>thanks a lot. It works fine.</p>
<p>Best regards<br />Frieder</p>
<p> </p>
<p>Am 2017-05-10 13:33, schrieb sgougeon@free.fr:</p>
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px; width:100%"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
<pre>Hello Frieder,
max(A,B) does it:
--> max(A,B)
ans =
3.
3.
2.
Samuel
----- Mail original -----
Hello,
I have to matrices: A = [ 1 ; 2 ; 2 ] B = [ 3 ; 3 ; 1 ]
I looking for get matric with having only the larger Elemtns:
C = [ 3 ; 3 ; 2 ]
Is there function to make to apply functions to eacth element.
C = [ if A .> B then A else B] elemtwise.
A for loop is to slow.
Thanks a lot.
Cheers
Frieder
_______________________________________________
users mailing list
<a href="mailto:users@lists.scilab.org">users@lists.scilab.org</a>
<a href="http://lists.scilab.org/mailman/listinfo/users">http://lists.scilab.org/mailman/listinfo/users</a>
</pre>
</blockquote>
<p> </p>
<div> </div>
</body></html>