Error message Undefined variable isnan
조회 수: 7 (최근 30일)
이전 댓글 표시
Hi,
I am new to using mathlab so apologies if this is obvious.
for i=1:2705
borntime(i)=min(find(~isnan(final_n(i),:)))
end
I am getting an error message saying undefined variable isnan.
If anyone could help me it would be great.
Final_n is a matrix of 2705x1209.
Thanks.
댓글 수: 0
채택된 답변
Azzi Abdelmalek
2012년 10월 18일
편집: Azzi Abdelmalek
2012년 10월 18일
final_n=rand(2705,5);
for i=1:2705
borntime(i)=min(find(~isnan(final_n(i,:))));
end
the error was in
~isnan(final_n(i),:)
댓글 수: 3
추가 답변 (1개)
Sean de Wolski
2012년 10월 18일
What is the output from:
which -all isnan
If nothing shows up:
rehash toolboxcache
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!