How to parse ASCII string-based temperature values from Covesion OC3 controller in MATLAB App Designer

Answers (1)

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

Asked:

on 17 Jun 2026

Answered:

on 17 Jun 2026

Community Treasure Hunt

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

Start Hunting!