How can I read Serial Data?

I'm sending data from arduino by Serial Port, The data is sent in this format AXXXXBYYYYC\n, I want to extract only the numbers (XXXX and YYYY) between the letters.

回答(1 个)

Walter Roberson
Walter Roberson 2022-11-23

0 个投票

readline() and sscanf() using 'A%dB%dC' format

类别

帮助中心File Exchange 中查找有关 MATLAB Support Package for Arduino Hardware 的更多信息

产品

版本

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by