make our own signum
Show older comments
Dear all,
is there any simple way to transform this javascript logic:
return value < 0 ? -1 : 1
into matlab
Accepted Answer
More Answers (0)
Categories
Find more on NaNs in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!