# How to implement a $1$-bit quantizer in Simulink?

I am trying to implement a delta-sigma modulator block diagram in Matlab Simulink but can't find a $$1$$-bit quantizer (which is required in the modulator) anywhere. Could anyone please tell me how to go about it?

• floor(.5*(sign(x)+1))
– user28715
Aug 7, 2017 at 13:37
• why do you need the floor() function, @StanleyPawlukiewicz? Aug 8, 2017 at 2:47
• Sign(0)=0. Floor(.5)=0
– user28715
Aug 8, 2017 at 5:58