I dont understand that ode 45's purpose ?
why cant i find same answer with quad command ?

댓글 수: 1

James Tursa
James Tursa 2022년 2월 8일
Your question is too generic. Maybe you could start by describing the problem you are trying to solve, and the issues you are currently having.

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

 채택된 답변

Walter Roberson
Walter Roberson 2022년 2월 8일
편집: Walter Roberson 2022년 2월 9일

1 개 추천

If you had a function of one variable, that involves only the direct derivative (without the function itself) and it had no mass variable, and you arranged to get the boundary conditions right, then quad() could potentially substitute for ode45(). For example dxdt = @(dt) dt .* sin(dt) could potentially be doable, but not dt.*sin(t) . Oh, and you couldn't do any event conditions either.
In any case involving mixed levels of derivatives, or multiple variables, or mass variables, or event conditions then quad() is not sufficient to be able to calculate the results.

추가 답변 (0개)

카테고리

제품

릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by