Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

bvp4c or classical odesolver

조회 수: 1 (최근 30일)
Moritz
Moritz 2013년 7월 23일
마감: MATLAB Answer Bot 2021년 8월 20일
Hello,
i solved an initial BVP by the method of lines in the following way:
i=1;
dvdt(i)= -omega^2/dx.*((xcen(i)-0.5*dx)*feo('ffun',v(i),v(i+1))) + ...
1/dx^2*(Ax(i+1)-Ax(i));
i=2:N-1;
dvdt(i)= -omega^2/dx.*((xcen(i)+0.5*dx).*F(i)...
-(xcen(i)-0.5*dx).*F(i-1)) + 1/dx^2*(Ax(i+1)-2*Ax(i)+Ax(i-1));
i=N;
dvdt(i)= omega^2/dx*(xcen(end)-0.5*dx)*feo('ffun',v(i-1),v(i)) - ...
1/dx^2*(Ax(i)-Ax(i-1));
Is it better or probably faster to use bvp4c instead ? What are the reasons why i would like to use bvp4c and not the approach i used ?
Any comments are appreciated
Best Wishes
Moritz

답변 (0개)

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by