MATLAB Cody - MATLAB Central

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

Difficulty:Rate

Solution 11789507

Submitted on 2 Aug 2023 by Shahriar Kabir
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