Matlab Simulink size mismatch
2 views (last 30 days)
Show older comments
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.
0 Comments
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!