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
Andrei Bobrov 2012년 2월 14일

0 개 추천

a = find(abs(x_matrix - 0.3) < 100*eps)
please read this is

카테고리

도움말 센터 및 File Exchange에서 Particle & Nuclear Physics에 대해 자세히 알아보기

태그

질문:

2012년 2월 14일

Community Treasure Hunt

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

Start Hunting!

Translated by