Example:
If
input a = [1 2 3 4 5]; input b = [10 9 8 7 6];
then output will be,
y_correct = [1 10 2 9 3 8 4 7 5 6];
Solution Stats
Problem Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers142
Suggested Problems
-
Replace NaNs with the number that appears to its left in the row.
3065 Solvers
-
630 Solvers
-
Set some matrix elements to zero
626 Solvers
-
Vector of numbers divisible by 3
153 Solvers
-
07 - Common functions and indexing 1
454 Solvers
More from this Author16
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!