how to take a certain number of characters:

1 visualización (últimos 30 días)
Lev Mihailov
Lev Mihailov el 31 de En. de 2020
Editada: Bhaskar R el 31 de En. de 2020
Hello! I have the number 9928900200, I need to do 992890,0200, how can I get this?

Respuestas (1)

Bhaskar R
Bhaskar R el 31 de En. de 2020
Editada: Bhaskar R el 31 de En. de 2020
num_str = num2str(9928900200);
first_part = num_str(1:6);
second_part = num_str(7:end);
num = strcat(first_part, ',', second_part);

Categorías

Más información sobre Characters and Strings en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by