Can you tell me how you solved the ode45 for equations of motion?

조회 수: 1 (최근 30일)
Arun Gowda
Arun Gowda 2021년 9월 28일
댓글: Walter Roberson 2022년 1월 10일
Can you tell me how you solved the ode45 for equations of motion?
NST = 4;
MPF = length(NST);
Xg(t) = [.any values ok.] % Matrix size of 1880 X 1
x"(t) + 3.797*x'(t) + 1442*x(t) = MPF*Xg(t)
can you give me the code please.
  댓글 수: 2
Walter Roberson
Walter Roberson 2021년 9월 28일
NST is a scalar, so length(NST) is 1. Is that what you wanted? Or did you mean that MPF is to be length 4 ?
Are the Xg(t) values intended to be constants?

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

답변 (1개)

Walter Roberson
Walter Roberson 2021년 9월 28일
ode45() cannot deal with those kinds of systems. Runge-Kutta solvers assume that the given equations have continuous first and second derivatives, but your Xg are impulse functions and so do not have continuous first derivatives.

카테고리

Help CenterFile Exchange에서 Calendar에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by