How to merge 2 data?
Show older comments
How to write the blow code in MATLAB Analysis ?
int16_t send_windSpeed =((msg[0] << 8) + msg[1]) ;
Answers (1)
Yongjian Feng
on 18 Jul 2021
Edited: Yongjian Feng
on 18 Jul 2021
Are you looking for bitshift function? Something like:
send_windSpeed = bitshift(msg(0), 8) + msg(1);
3 Comments
wael elsisi
on 18 Jul 2021
Yongjian Feng
on 19 Jul 2021
What is msg in your original code please?
wael elsisi
on 19 Jul 2021
Categories
Find more on MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!