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

7 Solutions

4 Solvers

Last Solution submitted on Jul 23, 2026

Last 200 Solutions

Solution Comments

Show comments
Loading...

Problem Recent Solvers4

Suggested Problems

More from this Author13

Problem Tags

Community Treasure Hunt

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

Start Hunting!