Creating a fucning in spesific format

4 vues (au cours des 30 derniers jours)
Berkay
Berkay le 30 Août 2022
I want to create a fucntion that display the input variable in long format.
How can I do it ?

Réponse acceptée

Sulaymon Eshkabilov
Sulaymon Eshkabilov le 30 Août 2022
You may consider using fprintf() by specifying the format specs, e.g.:
F = pi;
fprintf('F = %3.15f \n', F)
F = 3.141592653589793

Plus de réponses (0)

Catégories

En savoir plus sur Entering Commands dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by