I try the code in the str2num doc but it don't works.. it give me an empty array ! can you help me ?
>> X = str2num ( '12e-3 5.9e-3 -8.1e-3 2.56e-3; 5 11,2 17,9 33' )
X =
[]

 채택된 답변

madhan ravi
madhan ravi 2018년 11월 9일
편집: madhan ravi 2018년 11월 9일

0 개 추천

X = str2num( '12e-3 5.9e-3 -8.1e-3 2.56e-3; 5 11.2 17.9 33' ) %edited after kssv's comment

댓글 수: 5

madhan ravi
madhan ravi 2018년 11월 9일
편집: madhan ravi 2018년 11월 9일
11,9->11.9
17,9->17.9
decimal numbers have to be denoted by dots not commas
KSSV
KSSV 2018년 11월 9일
The square braces are superfluous.
madhan ravi
madhan ravi 2018년 11월 9일
Thank you @KSSV ,edited
Maha Oueghlani
Maha Oueghlani 2018년 11월 9일
Thank's a lot
madhan ravi
madhan ravi 2018년 11월 9일
Anytime :) make sure to accept the answer

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

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

태그

질문:

2018년 11월 9일

댓글:

2018년 11월 9일

Community Treasure Hunt

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

Start Hunting!

Translated by