필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Extracting numbers from Text document

조회 수: 1 (최근 30일)
Sivakumaran Chandrasekaran
Sivakumaran Chandrasekaran 2012년 4월 30일
마감: MATLAB Answer Bot 2021년 8월 20일
Hi, I have a text document which has the values a5229si. I should get the output as 5. Can anyone reply me the code.
Regards.,
Siva
  댓글 수: 2
TAB
TAB 2012년 4월 30일
How data is formated in your text document.
Is it contains only a5229si ?
Sivakumaran Chandrasekaran
Sivakumaran Chandrasekaran 2012년 4월 30일
Yes.

답변 (1개)

Andrei Bobrov
Andrei Bobrov 2012년 4월 30일
regexprep(str,str,'5')
  댓글 수: 1
Sivakumaran Chandrasekaran
Sivakumaran Chandrasekaran 2012년 4월 30일
I get different answer even if i use the same command which you gave. instead of '5' i mentioned 'z'...

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by