how to take a certain number of characters:

1 次查看(过去 30 天)
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 中查找有关 Get Started with MATLAB 的更多信息

标签

产品

Community Treasure Hunt

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

Start Hunting!

Translated by