Data Conversion Byte array to single on Simulink
조회 수: 11 (최근 30일)
이전 댓글 표시
I am trying to convert 4 bytes (input data coming from serial port) to single. For examle my input bytes are A=[00 5c b2 f9] result is 6075129 . On matlab i do this with this function:
result=A(1)*power(2,24)+A(2)*power(2,16)+A(3)*power(2,8)+ A(4)*power(2,0); But i dont know how to do this on simulink.
I hope you can help me.
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 String에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!