フィルターのクリア

HOW TO get answer in 6 decimal places .

31 ビュー (過去 30 日間)
sadiqa ilyas
sadiqa ilyas 2019 年 9 月 21 日
コメント済み: Boddu Meghanadh 2020 年 3 月 9 日
Hi. I have for example U=0,1,2,3,4,5,6,7
i want to divide each no by 10000. I need the answer in decimal and then find the maximum value of X.Round,ceil,fix does not give me the desired result.
U=unique(point2(:,2));%some values of U
X=round(U/10000);
a=max(X)
  4 件のコメント
David Hill
David Hill 2019 年 9 月 21 日
a=sprintf('%0.6f',max(X));
But a will be a charactor array
sadiqa ilyas
sadiqa ilyas 2019 年 9 月 21 日
thanks.

サインインしてコメントする。

採用された回答

David Hill
David Hill 2019 年 9 月 21 日
  1 件のコメント
Boddu Meghanadh
Boddu Meghanadh 2020 年 3 月 9 日
can u write that briefly following syntax....with a simple example?

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by