The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: How to add the solver's option in Simulink's s-function
Replies: 10   Last Post: Oct 1, 2015 4:32 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

Posts: 51
Registered: 4/21/08
How to add the solver's option in Simulink's s-function
Posted: Feb 6, 2009 9:20 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

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
% odeset('MaxStep','1e-3');

% odeset('RelTol',1e-3,'AbsTol',1e-3);
domain = 0:1e-4:8;

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

Thanks in advance!

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.