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

1 vue (au cours des 30 derniers jours)
Arun Gowda
Arun Gowda le 28 Sep 2021
Commenté : Walter Roberson le 10 Jan 2022
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 commentaires
Walter Roberson
Walter Roberson le 28 Sep 2021
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?

Connectez-vous pour commenter.

Réponses (1)

Walter Roberson
Walter Roberson le 28 Sep 2021
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.

Catégories

En savoir plus sur Calendar dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by