フィルターのクリア

is this a bug because it definitely looks like

1 回表示 (過去 30 日間)
Ioan Alexandru
Ioan Alexandru 2014 年 7 月 8 日
コメント済み: Ioan Alexandru 2014 年 7 月 8 日
Hi everyone,
So I'm trying to do quite a simple task with matlab. I have an array defined as array=[-5:0.1:5] and I want to find the position of a particular element using find. for example find(-0.1==array) should return me the position of the element -0.1 in the array, but it doesn't. What's more strange is that if I ask matlab (-0.1==array(50)) it will return FALSE! I tried defining the array as [-5:0.1:5], (-5:0.1:5) or with no brackets whatsoever but nothing worked. Help please?
Thank you very much and I look forward to your comments.
Kind Regards, Alex

採用された回答

Sean de Wolski
Sean de Wolski 2014 年 7 月 8 日
  1 件のコメント
Ioan Alexandru
Ioan Alexandru 2014 年 7 月 8 日
Thank you very much!

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by