converting bernouli binary signals into decimal signal in simulink
Hi,
I am trying to convert binary signals from (bernouli binary generator block) into decimal values in simulink. If anyone know how to do that please let me know!
Thanks
Riaz
I am trying to convert binary signals from (bernouli binary generator block) into decimal values in simulink. If anyone know how to do that please let me know!
Thanks
Riaz
0
Comments
you're probably looking for some block called a decoder or something.
Thanks for your reply.
Yes I am looking for block which is kind of encoder. I used embedded Matlab function block to produce decimal output from binary inputs of Bernouli binary block. But I dont know exactly what code be written in embedded matlab function block to produce required output.
N.B Embedded Matlab block has input port which will take input data from bernouli binary and produce decimal data in output port.
Did you have any luck?
Actually binary 1 and 0 are same as decimal 1 and 0 so there is no need to such conversion. I did not realized that before!
But if you want to convert binary data to decimal data use the command bi2de in embedded matlab function block.
thanks