Matlab Simulink size mismatch

2 views (last 30 days)
Abilash Perinparasa
Abilash Perinparasa on 19 Nov 2018
I am having some trouble using the typecast() function in Matlab Simulink. I am recieving an array of uint8 values (called data) from serial communication. I want to convert some of these bytes to a different data type. If I try to use typecast(uint8(data(1:4)),'single') and try to assign its output to a variable of type single, I recieve a size mismatch error. Any help is greatly appreciated.

Answers (0)

Categories

Find more on Simulink in Help Center and File Exchange

Products


Release

R2017b

Community Treasure Hunt

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

Start Hunting!