Subscript assignment mismatch with the use of 'find'
情報
この質問は閉じられています。 編集または回答するには再度開いてください。
古いコメントを表示
The following as commands typed in the command window with the results:
>> X = 0:0.001:1;
>> find(X==0.57)
ans =
Empty matrix: 1-by-0
>> X(571)
ans =
0.5700
I cannot figure out why find doesn't work. I stumbled on it accidentally. This works if choose to find any other number except a special few like 0.47, 0.67, 0.41...
0 件のコメント
回答 (3 件)
Arturo Moncada-Torres
2011 年 8 月 31 日
1 投票
1 件のコメント
Paulo Silva
2011 年 8 月 31 日
+1 vote for mentioning the FAQ
aditya
2011 年 8 月 31 日
0 投票
1 件のコメント
Walter Roberson
2011 年 9 月 2 日
Using tolerances is the only practical solution unless you have a system that has extensive interval-arithmetic operations built in. Building in that level of interval-arithmetic is hard!!
この質問は閉じられています。
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!