I want to plot data given from a device that outputs the values as "Char", (see below).
I would like that the values appear as the ones shown in "figure 2".
Is it possible?

 Respuesta aceptada

Stephen23
Stephen23 el 22 de Mayo de 2020
Editada: Stephen23 el 22 de Mayo de 2020

2 votos

>> str = 'LVLG -287.41E-03 -28.401E-03 -2.4001E-03';
>> tmp = regexp(str,'\S+','match');
>> vec = str2double(tmp(2:end))
vec =
-0.2874100 -0.0284010 -0.0024001

Más respuestas (0)

Categorías

Más información sobre Vehicle Dynamics Blockset en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 22 de Mayo de 2020

Comentada:

el 26 de Mayo de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by