How to convert string from edit text to dec?

I am reading from an edit text in GUI as below and want to convert this to native:
pressure=get(handles.edit4, 'String');
For example, if '100' is entered I want the output to be '49 48 48'.
I have tried unicode2native but does not seem to work, but works in the command line.
Thanks in advance.

댓글 수: 1

Jan
Jan 2012년 7월 11일
Do you want the double vector [49 48 48] or the string '49 48 48' with intermediate spaces?

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

답변 (1개)

Walter Roberson
Walter Roberson 2012년 7월 11일

0 개 추천

pressure + 0

카테고리

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

태그

질문:

2012년 7월 11일

Community Treasure Hunt

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

Start Hunting!

Translated by