0

I have an incoming signal and I want to change it's sign. I can easily add a gain block (=-1) and flip the sign or multiply the signal by -1. However, I want to avoid this because the incoming signal is fixdt(1,24,39) which is very small. Consequently a gain block causes an overflow.

Is there a way I can manually flip the signed bit of the incoming signal instead?

Thanks :)

  • Multiplying a fixed-point value by -1 should never cause an overflow. I don't know simulink but something else is going on here. – Elliot Alderson Jul 24 '20 at 15:30

1 Answers1

0

Figured it out. I need to use a Unary Minus block:

https://au.mathworks.com/help/simulink/slref/unaryminus.html