How to change integer format

 Risposta accettata

Mohammad Abouali
Mohammad Abouali il 29 Dic 2016
Modificato: Mohammad Abouali il 29 Dic 2016
fprintf('%0.2d\n',2)
02
fprintf('%0.2d\n',3)
03
fprintf('%0.4d\n',3)
0003

2 Commenti

Belal Arar
Belal Arar il 29 Dic 2016
thank you man :)
You are welcome

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Loops and Conditional Statements in Centro assistenza e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by