Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Getting an error while solving a problem in matlab 7.0

Subject: Getting an error while solving a problem in matlab 7.0

From: srisudheer boppana

Date: 6 Jul, 2010 15:05:21

Message: 1 of 5

hello,
While iam doing a problem in matalb7 when iam using it i got an error like

Failure at t=-9.955743e-001. Unable to meet integration tolerances without
reducing the step size below the smallest value allowed (1.776357e-015) at time t.

How to remove this error is there any options to me made to be changed.I saw in your newsletters that to go to simulation option and there to reduce the step size.I searched but not find any options can u please give me a detail how to avoid this error.Please reply to this mail as soon as possible it is very urgent to me.

Subject: Getting an error while solving a problem in matlab 7.0

From: Faraz Afzal

Date: 6 Jul, 2010 15:36:05

Message: 2 of 5

"srisudheer boppana" <sudheer8989@gmail.com> wrote in message <i0vgnh$j9e$1@fred.mathworks.com>...
> hello,
> While iam doing a problem in matalb7 when iam using it i got an error like
>
> Failure at t=-9.955743e-001. Unable to meet integration tolerances without
> reducing the step size below the smallest value allowed (1.776357e-015) at time t.
>
> How to remove this error is there any options to me made to be changed.I saw in your newsletters that to go to simulation option and there to reduce the step size.I searched but not find any options can u please give me a detail how to avoid this error.Please reply to this mail as soon as possible it is very urgent to me.

Dear Sudheer,

What are you getting this error with, is that ODE solver or what... Is that in SImulink or what??

check for
doc odeset as in your case it seems to be the right choice.

Regards,
Faraz

Subject: Getting an error while solving a problem in matlab 7.0

From: srisudheer boppana

Date: 6 Jul, 2010 18:02:07

Message: 3 of 5

"Faraz Afzal" <farazafzal@gmail.com> wrote in message <i0vih5$jqq$1@fred.mathworks.com>...
> "srisudheer boppana" <sudheer8989@gmail.com> wrote in message <i0vgnh$j9e$1@fred.mathworks.com>...
> > hello,
> > While iam doing a problem in matalb7 when iam using it i got an error like
> >
> > Failure at t=-9.955743e-001. Unable to meet integration tolerances without
> > reducing the step size below the smallest value allowed (1.776357e-015) at time t.
> >
> > How to remove this error is there any options to me made to be changed.I saw in your newsletters that to go to simulation option and there to reduce the step size.I searched but not find any options can u please give me a detail how to avoid this error.Please reply to this mail as soon as possible it is very urgent to me.
>
> Dear Sudheer,
>
> What are you getting this error with, is that ODE solver or what... Is that in SImulink or what??
>
> check for
> doc odeset as in your case it seems to be the right choice.
>
> Regards,
> Faraz
Dear Faraz,
This error is coming while iam using this steps if u see this steps means u can get an idea.

tspan = [0,8];
>> s0 = [0,0,-1];
>> [T,S] = ode45('chirp3',tspan,s0);
Warning: Failure at t=2.146018e+000. Unable to meet integration tolerances without reducing
the step size below the smallest value allowed (7.105427e-015) at time t.
> In ode45 at 371

iam getting an error as above.Pls tell how to remove this error.

sudheer

Subject: Getting an error while solving a problem in matlab 7.0

From: Steven Lord

Date: 6 Jul, 2010 19:17:46

Message: 4 of 5


"srisudheer boppana" <sudheer8989@gmail.com> wrote in message
news:i0vr2v$ge4$1@fred.mathworks.com...
> "Faraz Afzal" <farazafzal@gmail.com> wrote in message
> <i0vih5$jqq$1@fred.mathworks.com>...
>> "srisudheer boppana" <sudheer8989@gmail.com> wrote in message
>> <i0vgnh$j9e$1@fred.mathworks.com>...

*snip*

> Dear Faraz,
> This error is coming while iam using this steps if u see this steps means
> u can get an idea.
>
> tspan = [0,8];
>>> s0 = [0,0,-1];
>>> [T,S] = ode45('chirp3',tspan,s0);
> Warning: Failure at t=2.146018e+000. Unable to meet integration
> tolerances without reducing
> the step size below the smallest value allowed (7.105427e-015) at time t.
>> In ode45 at 371
>
> iam getting an error as above.Pls tell how to remove this error.

Try a stiffer solver (look at the table in DOC ODE45 for a list of which
solvers are stiff and which are not) or reduce your tolerances using ODESET.

--
Steve Lord
slord@mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ
To contact Technical Support use the Contact Us link on
http://www.mathworks.com

Subject: Getting an error while solving a problem in matlab 7.0

From: srisudheer boppana

Date: 6 Jul, 2010 19:55:20

Message: 5 of 5

"Steven Lord" <slord@mathworks.com> wrote in message <i0vvgq$8nq$1@fred.mathworks.com>...
>
> "srisudheer boppana" <sudheer8989@gmail.com> wrote in message
> news:i0vr2v$ge4$1@fred.mathworks.com...
> > "Faraz Afzal" <farazafzal@gmail.com> wrote in message
> > <i0vih5$jqq$1@fred.mathworks.com>...
> >> "srisudheer boppana" <sudheer8989@gmail.com> wrote in message
> >> <i0vgnh$j9e$1@fred.mathworks.com>...
>
> *snip*
>
> > Dear Faraz,
> > This error is coming while iam using this steps if u see this steps means
> > u can get an idea.
> >
> > tspan = [0,8];
> >>> s0 = [0,0,-1];
> >>> [T,S] = ode45('chirp3',tspan,s0);
> > Warning: Failure at t=2.146018e+000. Unable to meet integration
> > tolerances without reducing
> > the step size below the smallest value allowed (7.105427e-015) at time t.
> >> In ode45 at 371
> >
> > iam getting an error as above.Pls tell how to remove this error.
>
> Try a stiffer solver (look at the table in DOC ODE45 for a list of which
> solvers are stiff and which are not) or reduce your tolerances using ODESET.
>
> --
> Steve Lord
> slord@mathworks.com
> comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ
> To contact Technical Support use the Contact Us link on
> http://www.mathworks.com
>
Hai Steve Lord,
As u said i tried with all ode function files like ode23,ode113,ode23,ode23t,ode23ft but then also error is giving but can u tell how to reduce this tolerances using ODEST iam not understanding it.

sudheer

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us