I was trying to solve a ODE with fractional derivative using fde12 function. My codes are:
a = 1; mu = 4;
fdefun = @(t,y) [a-(mu+1)*y(1)+y(1)^2*y(2); mu*y(1)-y(1)^2*y(2)];
alpha = 0.8;
t0 = 0 ; tfinal = 100 ; y0 = [ 0.2 ; 0.03];
h = 2^(-6);
[t, y_fde12] = fde12(alpha,fdefun,t0,tfinal,y0,h);
However, the error is:
'fde12' is not found in the current folder or on the MATLAB path, but exists in:
C:\Users\zhang\AppData\Local\Temp\AweZip\Temp1\AweZip5\Gappappa's Codes
Change the MATLAB current folder or add its folder to the MATLAB path.
Error in fde12function (line 12)
[t, y_fde12] = fde12(alpha,fdefun,t0,tfinal,y0,h);
I was thinking fde12 is a inbuilt function... but it is not working...
Please help... Thanks

 채택된 답변

Navya Singam
Navya Singam 2021년 11월 8일

3 개 추천

Hi,
fde12 is not a MATLAB inbuilt function. It is available as a part of the File Exchange submission. You can download and add it to the MATLAB path and use it as a normal function.

댓글 수: 2

Wei Zhang
Wei Zhang 2021년 11월 14일
Thanks!
Purnendu
Purnendu 2024년 8월 29일
where to paste the file ?

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Programming에 대해 자세히 알아보기

제품

질문:

2021년 11월 5일

댓글:

2024년 8월 29일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by