Borrar filtros
Borrar filtros

Decimals

2 visualizaciones (últimos 30 días)
Salvatore Turino
Salvatore Turino el 26 de En. de 2012
Hello.i have a vector that is: C=[1;1.0000;1.0000;1.0000]
how can i see if there is any approssimations?

Respuesta aceptada

Walter Roberson
Walter Roberson el 26 de En. de 2012
C ~= round(C)
will return 1 for any position that is not an integer.
You may also want to try something like
fprintf('%.99g\n', C)
  1 comentario
Salvatore Turino
Salvatore Turino el 26 de En. de 2012
thank you :)

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

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

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by