필터 지우기
필터 지우기

What is the mf ?

조회 수: 7 (최근 30일)
Daniyar
Daniyar 2013년 2월 21일
Hey, guys
I will be happy if you help me to understand the following terms:
1) What does "mf" imply in the following code?
mf=1; reltol=1.0e-04; abstol=1.0e-04; options=odeset(’RelTol’,reltol,’AbsTol’,abstol); if(mf==1) % explicit FDs [t,u]=ode15s(@pde_1,tout,u0,options); end
2) What does nout mean in the following code?
% Independent variable for ODE integration t0=0.0; tf=2.5; tout=linspace(t0,tf,n); nout=n; ncall=0;
3) What does ndss mean n the follwoing code?
if(mf==2) ndss=4; % ndss = 2, 4, 6, 8 or 10 required [t,u]=ode15s(@pde_2,tout,u0,options); end
Can you please explain each variable of interest in relation to the whole code?

답변 (1개)

Youssef  Khmou
Youssef Khmou 2013년 2월 21일
편집: Youssef Khmou 2013년 2월 21일
hi,
they are constants (mf,nout, ndss) it depends on the system on which you want apply the ODE .
AT least : you have to give a comprehensive description on the title like " MOL parameters " or something else so to target a large audience .
You have to study the theory & algorithm, next you will answer for yourself , but anyway :
1.ndss refers to a library of differentiation routines for use in the MOL solution of PDEs
2.nout : Number of outputs in the graph .
3.fm : a parameter to adjust the ndss .
  댓글 수: 2
Daniyar
Daniyar 2013년 2월 21일
Thanks.
Do you have any source of information clearly explaining ndss, ndout, and fm. I tried to look for them in mathworks.co.uk but they give different meaning.
Youssef  Khmou
Youssef Khmou 2013년 2월 23일
no, they are not predefined in Mat, every programs has its own variables names , http://www.scholarpedia.org/article/Method_of_lines/example_implementation Did yu see this link before , it contains the MOL

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

카테고리

Help CenterFile Exchange에서 Numerical Integration and Differential Equations에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by