what is the problem for the following commands in MATLAB?

1 回表示 (過去 30 日間)
PULAK Kumer
PULAK Kumer 2020 年 12 月 26 日
回答済み: Walter Roberson 2020 年 12 月 26 日
m=input('Give integer value')
fprintf('%.(%d)f',m,x(i))
Here , I want to show decimal value after point according to inputed value.

採用された回答

Walter Roberson
Walter Roberson 2020 年 12 月 26 日
fprintf('%.*f', m, x(i))

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMATLAB についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by