Error message Undefined variable isnan
6 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponse acceptée
Azzi Abdelmalek
le 18 Oct 2012
Modifié(e) : Azzi Abdelmalek
le 18 Oct 2012
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 commentaires
Plus de réponses (1)
Sean de Wolski
le 18 Oct 2012
What is the output from:
which -all isnan
If nothing shows up:
rehash toolboxcache
0 commentaires
Voir également
Catégories
En savoir plus sur Logical dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!