Solved
How to create a vector with the minimum values of two other vectors?
If I have a vector A and B both with 10 elements. How can i create a vector C that has the minimum values of A or B on each corresponding position.
Thanks in advance !
If I have a vector A and B both with 10 elements. How can i create a vector C that has the minimum values of A or B on each corresponding position.
Thanks in advance !
Use vectorization.
But as min can't be vectorized, we have to write our own min function, calling the built in min.

Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.