Does Simulink offer any block that can tell me if the input is signed or unsigned ?
1 view (last 30 days)
Show older comments
Diaa Younes on 31 Jan 2022
Commented: Diaa Younes on 1 Feb 2022
I am using Simulink/Embedded Coder and I was implementing a subsytem that needs to know if one of its inputs is signed or unsigned.
is there a block/function that can tell if an input is signed or unsinged? For example if the type of the input is Uint8, Uint16,Uint32 then the output of the block will be 0, and if the type is Int8, Int16, Int32 the block will be 1, let's say.
Benjamin Thompson on 31 Jan 2022
There is a block in the Math Operations library called "Sign".
Find more on Texas Instruments C2000 Processors 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!