채택된 답변

Andrei Bobrov
Andrei Bobrov 2016년 12월 21일
편집: Andrei Bobrov 2016년 12월 21일

3 개 추천

b = str2double(sprintf('%d',a))
other way
b = 10.^(numel(a)-1:-1:0)*a

댓글 수: 1

may be a slight correction in your second way:
b = sum(10.^(numel(a)-1:-1:0).*a)

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

추가 답변 (0개)

카테고리

질문:

2016년 12월 21일

댓글:

2020년 12월 25일

Community Treasure Hunt

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

Start Hunting!

Translated by