If str does not represent a valid scalar value, str2double returns NaN.
NaN ist auch ein numerischer Wert.
Also auf isnan prüfen:
if any(isnan([a0 a c o1 o2 o3])) ...
↧