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!