Write a function that returns the input with the sign of every element reversed.
The input may be a scalar, vector, or matrix.
Some built-in functions and signs are forbidden.

Solution Stats

17 Solutions

8 Solvers

Last Solution submitted on Aug 01, 2026

Last 200 Solutions

Solution Comments

Show comments
Loading...

Problem Recent Solvers8

Suggested Problems

More from this Author24

Problem Tags

Community Treasure Hunt

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

Start Hunting!