Structure as input

조회 수: 1 (최근 30일)
andoni
andoni 2011년 5월 16일
Hello, I have a mat file where i have defined for structures and the time. The structures represent four bits and the value of the bits change at time because they represent a phone number. I want to convert the input signals that are almost rectangular in the numbers they represent, ie, if the values ??are (bo = 0, b1 = 0, b2 = 0, b3 = 1) the number of output should be 1 . The goal is to add a mobile number. Each digit is represented by four bits.
Any idea??

채택된 답변

Walter Roberson
Walter Roberson 2011년 5월 16일
b0 * 8 + b1 * 4 + b2 * 2 + b3
  댓글 수: 1
andoni
andoni 2011년 5월 16일
I make the conversion with the block bit to integer after introducing the four signals on a data bus

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Sources에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by