find and ismember are not working for one number in a vector

조회 수: 1 (최근 30일)
Ralf Sch
Ralf Sch 2013년 5월 3일
Hey, I am new here and I searched a couple of time for my subject but I could not find anything. My question: I have a vector x=0.4:0.02:0.6; When I try to use "find" [find(x==0.42) --> empty matrix] or "ismember" [ismember(0.42,x) --> 0] to find the indexes of the numbers it is working for all number except the number 0.42. Can somebody tell me how that is possible and how I can solve this issue? Kind regards
Ralf

채택된 답변

Iman Ansari
Iman Ansari 2013년 5월 3일

추가 답변 (1개)

Ralf Sch
Ralf Sch 2013년 5월 3일
But how can I solve this problem then?

카테고리

Help CenterFile Exchange에서 Matrices and Arrays에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by