Borrar filtros
Borrar filtros

floating point question

1 visualización (últimos 30 días)
vsee
vsee el 25 de Mzo. de 2011
Hello. I imported a .csv file to into matlab which has 10 million rows and 2 columns. I truncated the number of rows to 100 thousand. The first column has doubles but matlab only displays 4 digits after the decimal point. Is there a way to get more digits like 8 or 9?

Respuesta aceptada

Sean de Wolski
Sean de Wolski el 25 de Mzo. de 2011
The digits are there; they just aren't displayed.
format long
to view them
  2 comentarios
vsee
vsee el 25 de Mzo. de 2011
can you explain pls? if I have A[1:100000,1:2] as the original matrix with 100000 rows and 2 columns and if I create another matrix time with all the rows and 1st column how do I format the time matrix? Thanks
Matt Fig
Matt Fig el 25 de Mzo. de 2011
For example: copy and paste this into your command window:
clc
format short
pi
format long
pi

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Logical en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by