フィルターのクリア

How to check whether all the elements are integer?

8 ビュー (過去 30 日間)
Sneha P S
Sneha P S 2018 年 4 月 5 日
コメント済み: Sneha P S 2018 年 4 月 5 日
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 Center および File ExchangeData Types についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by