Create the vector lin:

(the integers from 1 to 20)

Make every other value in it negative to get:

Solution Stats

679 Solutions

428 Solvers

Last Solution submitted on Feb 02, 2026

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...

Problem Recent Solvers428

Suggested Problems

More from this Author26

Problem Tags

Community Treasure Hunt

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

Start Hunting!