MATLAB: Error :RelTol must be a positive scalar.

ode45phase portraitsreltol

options=odeset('RelTol','1e-3','AbsTol','1e-4');
I am trying to plot phase portraits for a non autonomous system. The code gives me the following error: Error using odearguments (line 126) RelTol must be a positive scalar.
Could you please help me to fix it?

Best Answer

options=odeset('RelTol',1e-3,'AbsTol',1e-4);