HOW TO get answer in 6 decimal places .

31 次查看(过去 30 天)
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

请先登录,再进行评论。

采纳的回答

David Hill
David Hill 2019-9-21

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Get Started with MATLAB 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by