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:
PECE method demo

Subject: PECE method demo

From: Sanaa

Date: 24 Aug, 2013 16:27:08

Message: 1 of 4

Hi all,
I downloaded PECE method matlab code written by Roberto Garrappa
for solving nonlinear fractional order differential equations. I tried to implement the code several times but I failed. Is there any demo on how to use it?
I understand the explanation inside the code, but how do I define FDEFUN?
For instant I have a system of nonlinear fractional order differential equations which will be defined in an m file as FDEFUN, how I define it????
Any help is really appreciated.
Many thanks in advance

Subject: PECE method demo

From: Torsten

Date: 26 Aug, 2013 11:16:09

Message: 2 of 4

"Sanaa" wrote in message <kvamss$o45$1@newscl01ah.mathworks.com>...
> Hi all,
> I downloaded PECE method matlab code written by Roberto Garrappa
> for solving nonlinear fractional order differential equations. I tried to implement the code several times but I failed. Is there any demo on how to use it?
> I understand the explanation inside the code, but how do I define FDEFUN?
> For instant I have a system of nonlinear fractional order differential equations which will be defined in an m file as FDEFUN, how I define it????
> Any help is really appreciated.
> Many thanks in advance

Three test problems are available here:
http://www.dm.uniba.it/nagb/?q=node/17

Best wishes
Torsten.

Subject: PECE method demo

From: Sanaa

Date: 26 Aug, 2013 14:17:07

Message: 3 of 4

"Torsten" wrote in message <kvfddp$qjt$1@newscl01ah.mathworks.com>...
> "Sanaa" wrote in message <kvamss$o45$1@newscl01ah.mathworks.com>...
> > Hi all,
> > I downloaded PECE method matlab code written by Roberto Garrappa
> > for solving nonlinear fractional order differential equations. I tried to implement the code several times but I failed. Is there any demo on how to use it?
> > I understand the explanation inside the code, but how do I define FDEFUN?
> > For instant I have a system of nonlinear fractional order differential equations which will be defined in an m file as FDEFUN, how I define it????
> > Any help is really appreciated.
> > Many thanks in advance
>
> Three test problems are available here:
> http://www.dm.uniba.it/nagb/?q=node/17
>
> Best wishes
> Torsten.

Thank you very much for your kind reply. I know how to do that with ''inline functions'', however, I don't know how to define a system with different fractional-orders!

Subject: PECE method demo

From: Torsten

Date: 26 Aug, 2013 14:31:05

Message: 4 of 4

"Sanaa" wrote in message <kvfo13$p2t$1@newscl01ah.mathworks.com>...
> "Torsten" wrote in message <kvfddp$qjt$1@newscl01ah.mathworks.com>...
> > "Sanaa" wrote in message <kvamss$o45$1@newscl01ah.mathworks.com>...
> > > Hi all,
> > > I downloaded PECE method matlab code written by Roberto Garrappa
> > > for solving nonlinear fractional order differential equations. I tried to implement the code several times but I failed. Is there any demo on how to use it?
> > > I understand the explanation inside the code, but how do I define FDEFUN?
> > > For instant I have a system of nonlinear fractional order differential equations which will be defined in an m file as FDEFUN, how I define it????
> > > Any help is really appreciated.
> > > Many thanks in advance
> >
> > Three test problems are available here:
> > http://www.dm.uniba.it/nagb/?q=node/17
> >
> > Best wishes
> > Torsten.
>
> Thank you very much for your kind reply. I know how to do that with ''inline functions'', however, I don't know how to define a system with different fractional-orders!

In the above code, the fractional order must be the same for all equations of your system of FDEs.

Best wishes
Torsten.

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