Create the vector lin:

(the integers from 1 to 20)

Make every other value in it negative to get:

Solution Stats

681 Solutions

430 Solvers

Last Solution submitted on Mar 06, 2026

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...

Problem Recent Solvers430

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!