Find Command and Empty matrix: 1-by-0 Error
显示 更早的评论
I know there is a value but find command generate error. Now sure how to fix!
x_matrix=[0:0.1:0.9] [a]=find(x_matrix==0.3)
results a =
Empty matrix: 1-by-0
回答(1 个)
Andrei Bobrov
2012-2-14
a = find(abs(x_matrix - 0.3) < 100*eps)
类别
在 帮助中心 和 File Exchange 中查找有关 Instrument Control Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!