how to take a certain number of characters:

2 ビュー (過去 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 Center および File ExchangeGet Started with MATLAB についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by