How to check whether all the elements are integer?

19 visualizaciones (últimos 30 días)
Sneha P S
Sneha P S el 5 de Abr. de 2018
Comentada: Sneha P S el 5 de Abr. de 2018
I had a vector of size (1 x 65536). How can i check whether all the elements in that vector is an integer.
  1 comentario
Sneha P S
Sneha P S el 5 de Abr. de 2018
There some values are stored as 8.8744e+05 while checking the workspace. Is that a problem for doing bitxor operation. Those values are also considered as integers, right?

Iniciar sesión para comentar.

Respuesta aceptada

Von Duesenberg
Von Duesenberg el 5 de Abr. de 2018
check = [1 1.5];
logical(~rem(check,1))

Más respuestas (0)

Categorías

Más información sobre Data Types 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