Effacer les filtres
Effacer les filtres

what is the problem for the following commands in MATLAB?

1 vue (au cours des 30 derniers jours)
PULAK Kumer
PULAK Kumer le 26 Déc 2020
m=input('Give integer value')
fprintf('%.(%d)f',m,x(i))
Here , I want to show decimal value after point according to inputed value.

Réponse acceptée

Walter Roberson
Walter Roberson le 26 Déc 2020
fprintf('%.*f', m, x(i))

Plus de réponses (0)

Catégories

En savoir plus sur Get Started with MATLAB 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