problem to find the index in 999×6 double

1 回表示 (過去 30 日間)
Venkat Ta
Venkat Ta 2017 年 7 月 18 日
コメント済み: Valerii Abramenko 2018 年 11 月 13 日
Hi, D = 999×6 double, I tried to use the function find to locate 0.5 values index in first two columns separately(x=999×1 double and y=999×1 double) but after several methods of trying I got same answers that are 1×0 empty double row vector and 0×1 empty double column vector. Please guide me to find the decimals 0.5001 values in the long vector. Thank you
Best regards, Venkat

採用された回答

KSSV
KSSV 2017 年 7 月 18 日
You define a small tolerance value and find the difference less then this tolerance. This is the way to find flottant points.
tol=10^-6;
idx=find(abs(col-0.5001)<=tol);
  2 件のコメント
Venkat Ta
Venkat Ta 2017 年 7 月 18 日
Super its works thanks.
Valerii Abramenko
Valerii Abramenko 2018 年 11 月 13 日
Nice promt! Thank you

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeProgramming についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by