Return a combination of vectors x1, x2 based on y1, y2 per:
x(j) = 0 if y1(j) < y2(j)
x(j) = x1(j) if y1(j) = y2(j)
x(j) = x2(j) if y1(j) > y2(j)Vectors can have any length, consistent orientation.
Solution Stats
Problem Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers50
Suggested Problems
-
Omit columns averages from a matrix
620 Solvers
-
We love vectorized solutions. Problem 1 : remove the row average.
897 Solvers
-
Generate a vector like 1,2,2,3,3,3,4,4,4,4
14461 Solvers
-
428 Solvers
-
6090 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!