MATLAB Cody - MATLAB Central

Problem 46823. Create a vector of n alternating ones and minus ones (★★)

Difficulty:Rate

Solution 3247228

Submitted on 17 Oct 2020 by Alex
  • Size: 17
  • This is the leading solution.
This solution is locked. To view this solution, you need to solve the problem first.

Suggested Problems

More from this Author52

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Go to top of page