Problem 1598. Weave two vectors into one
Weave the two given vectors into one as shown below.
Example:
If
a = [1 1 1] b = [0 0 0]
then
y = [1 0 1 0 1 0]
Solution Stats
Problem Comments
-
1 Comment
James
on 6 Jun 2013
Please change the function call in the test suite to your_fcn_name(a,b) rather than your_fcn_name(x).
Solution Comments
Show commentsProblem Recent Solvers129
Suggested Problems
-
Find all elements less than 0 or greater than 10 and replace them with NaN
15355 Solvers
-
Given an unsigned integer x, find the largest y by rearranging the bits in x
1686 Solvers
-
Make an awesome ramp for a tiny motorcycle stuntman
610 Solvers
-
744 Solvers
-
Calculate the Number of Sign Changes in a Row Vector (No Element Is Zero)
617 Solvers
More from this Author8
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!