Date: Feb 6, 2009 9:20 PM
Author: workaholic
Subject: How to add the solver's option in Simulink's s-function

I have a system described in differential equations and I have include
the options in the differential equation solving, and I incorporated
it in the s-function block and put it in the Simulink.

Here are my options and ode solver
options = odeset
('Mass',@xu_mass,'MassSingular','yes','MStateDependence','strong');
% odeset('MaxStep','1e-3');

% odeset('RelTol',1e-3,'AbsTol',1e-3);
domain = 0:1e-4:8;
[t,y]=ode23(@xu_eq,domain,[0;zeros(7,1)],options);


However, I don't know where to add the options to the simulation.
Please help.

Thanks in advance!