Decimal Places in Workspace View

8 visualizaciones (últimos 30 días)
Joe Bannen
Joe Bannen el 6 de Mayo de 2019
Comentada: Joe Bannen el 7 de Mayo de 2019
Hi
I am working on some code that needs decimal places to scientific precision.
I have created a loop that calculates determinants of matrices up to 512 x 512.
The determinants are output into a vector which, when I run the code enables the entries to be picked out individually, D1(10) will pick out the determinant of a 10x10 matrix from this vector.
D1 appears in the workspace, but when I open it the values have been reduced to 4 decimal places.
I am using the wokspace to compare these determinants for various matrices D2(10), D3(10) (all of which have vectors of determinants) etc.
Using the workspace to do this is causing problems due to the restriction to 4 decimal places.
Does a work around exist for this? Or does a more sophisticated approach exists to compare these vectors and inspect them visually?
Cheers
Joe
  1 comentario
Erivelton Gualter
Erivelton Gualter el 7 de Mayo de 2019
Are you aware you can format the output as you desire. Check the follow link if it helps you.

Iniciar sesión para comentar.

Respuesta aceptada

Walter Roberson
Walter Roberson el 7 de Mayo de 2019
For each variable in the workspace, you can control th format setting.
You can get into Preferences and configure the default format setting for the workspace.
This default format setting for the workspace uses the same format codes, but is independent of the "format" command for the command window.
  1 comentario
Joe Bannen
Joe Bannen el 7 de Mayo de 2019
Thanks!
That does the trick.
Cheers
Joe

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Workspace Variables and MAT Files en Help Center y File Exchange.

Productos


Versión

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by