MATLAB Answers

HOW TO get answer in 6 decimal places .

260 views (last 30 days)
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


Show 1 older comment
David Hill
David Hill on 21 Sep 2019
look at sprintf to provide whatever format you want
David Hill
David Hill on 21 Sep 2019
But a will be a charactor array

Sign in to comment.

Accepted Answer

David Hill
David Hill on 21 Sep 2019
format long

  1 Comment

Boddu Meghanadh
Boddu Meghanadh on 9 Mar 2020
can u write that briefly following syntax....with a simple example?

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!