How can I read Serial Data?

1 次查看(过去 30 天)
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
readline() and sscanf() using 'A%dB%dC' format

类别

Help CenterFile 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