How to parse ASCII string-based temperature values from Covesion OC3 controller in MATLAB App Designer
Show older comments
How to parse ASCII string-based temperature values from Covesion OC3 controller in MATLAB App Designer
1 Comment
Mathieu NOE
on 17 Jun 2026
you may share an example (data file) so maybe you get some help ...
Answers (1)
Walter Roberson
on 17 Jun 2026
0 votes
The historical way to do this kind of work was to use regexp to extract the components of the number (as character vectors), and then convert the character vectors to numeric form ( str2double for example), and put the numeric pieces together as appropriate.
The replacement workflow is instead to use pattern to construct "patterns", and then to use extract to extract as string() objects, double() those to convert the strings to numeric form, and put the numeric pieces together as appropriate.
To be honest, I still prefer regexp() . regexp() can be frustrating to get the correct patterns for more complicated work, but pattern() does not address those complications.
Categories
Find more on Migrate GUIDE Apps 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!