HOW TO get answer in 6 decimal places .

11 visualizaciones (últimos 30 días)
sadiqa ilyas
sadiqa ilyas el 21 de Sept. de 2019
Comentada: Boddu Meghanadh el 9 de Mzo. de 2020
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 comentarios
David Hill
David Hill el 21 de Sept. de 2019
a=sprintf('%0.6f',max(X));
But a will be a charactor array
sadiqa ilyas
sadiqa ilyas el 21 de Sept. de 2019
thanks.

Iniciar sesión para comentar.

Respuesta aceptada

David Hill
David Hill el 21 de Sept. de 2019
  1 comentario
Boddu Meghanadh
Boddu Meghanadh el 9 de Mzo. de 2020
can u write that briefly following syntax....with a simple example?

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by