diff --git a/@xolotl/rheobase.m b/@xolotl/rheobase.m index 9ea042a4..704ffeb8 100644 --- a/@xolotl/rheobase.m +++ b/@xolotl/rheobase.m @@ -90,6 +90,11 @@ x.integrate; V = x.integrate; + if any(isnan(V)) + N = 1e9; + return + end + N = xtools.findNSpikes(V(:,1)) - nSpikes; if N < 0 N = abs(I_ext);