Problem 42990. Pad zero between every adjacent values of the vector.
you are given a vector x. you have to make an output vector y with zeros padded between every adjacent values of x. e.g x: [1 2 3 4 5 6]; the output y:[ 1 0 2 0 3 0 4 0 5 0 6 0].
Solution Stats
Problem Comments
Solution Comments
Show commentsProblem Recent Solvers56
Suggested Problems
-
Remove the two elements next to NaN value
701 Solvers
-
Sum the numbers on the main diagonal
610 Solvers
-
Add a row of zeros on top of a matrix
266 Solvers
-
Is this triangle right-angled?
6524 Solvers
-
find whether it is prime or not
155 Solvers
More from this Author1
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!