How can I read Serial Data?

1 vue (au cours des 30 derniers jours)
Eduardo Gabriel González Blancas
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.

Réponses (1)

Walter Roberson
Walter Roberson le 23 Nov 2022
readline() and sscanf() using 'A%dB%dC' format

Catégories

En savoir plus sur MATLAB Support Package for Arduino Hardware dans Help Center et File Exchange

Produits


Version

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by