Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

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


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

Topic: How to add the solver's option in Simulink's s-function
Replies: 9   Last Post: Jan 1, 2013 4:53 AM

Advanced Search

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

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

On 2?8?, ??12?22?, workaholic <liua...@gmail.com> wrote:
> On 2?7?, ??10?20?, workaholic <liua...@gmail.com> wrote:
>
>
>

> > 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!
>
> Is there anyone who met such a problem? Thanks again in advance!


So,can I do it in some other way? Hope someone can help me.



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

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.