How to check whether all the elements are integer?

16 次查看(过去 30 天)
I had a vector of size (1 x 65536). How can i check whether all the elements in that vector is an integer.
  1 个评论
Sneha P S
Sneha P S 2018-4-5
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?

请先登录,再进行评论。

采纳的回答

Von Duesenberg
Von Duesenberg 2018-4-5
check = [1 1.5];
logical(~rem(check,1))

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Data Types 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by