Setting variables to constants in MATLAB

1 vue (au cours des 30 derniers jours)
Deepa Maheshvare
Deepa Maheshvare le 25 Avr 2019
I have a set of differential equations and I want to set some of the variables to be constant.
For instance,
dy1dt = f(..)
dy2/dt = g(..)
Here, want to set y2 to be constant always.
constant y2;
Is this the right to deifne y2 to be constant?
  4 commentaires
Torsten
Torsten le 25 Avr 2019
Set dy2/dt = 0. This makes y2 remain at its initial value.
Deepa Maheshvare
Deepa Maheshvare le 25 Avr 2019
Thank you, everybody

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Mathematics dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by