how to take a certain number of characters:

조회 수: 1 (최근 30일)
Lev Mihailov
Lev Mihailov 2020년 1월 31일
편집: Bhaskar R 2020년 1월 31일
Hello! I have the number 9928900200, I need to do 992890,0200, how can I get this?

답변 (1개)

Bhaskar R
Bhaskar R 2020년 1월 31일
편집: Bhaskar R 2020년 1월 31일
num_str = num2str(9928900200);
first_part = num_str(1:6);
second_part = num_str(7:end);
num = strcat(first_part, ',', second_part);

카테고리

Help CenterFile Exchange에서 Characters and Strings에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by