Problem 46823. Create a vector of n alternating ones and minus ones (★★)
Solution Stats
Problem Recent Solvers52
Suggested Problems
-
Return the largest number that is adjacent to a zero
4689 Solvers
-
Element by element multiplication of two vectors
347 Solvers
-
283 Solvers
-
Vector raised to a power, element-wise (★)
122 Solvers
-
Swap the first and last columns (★★)
107 Solvers
More from this Author52
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!