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?

 채택된 답변

Stephen23
Stephen23 2020년 5월 22일
편집: Stephen23 2020년 5월 22일

2 개 추천

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Vehicle Dynamics Blockset에 대해 자세히 알아보기

태그

질문:

2020년 5월 22일

댓글:

2020년 5월 26일

Community Treasure Hunt

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

Start Hunting!

Translated by