Hi Satrajeet,
You might be looking for the binary encoder block and it is part of Communications Toolbox. Here is the link for the block that can be used in Simulink.
Hope this helps.
Regards,
Sriram
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!