Setting variables to constants in MATLAB

1 Ansicht (letzte 30 Tage)
Deepa Maheshvare
Deepa Maheshvare am 25 Apr. 2019
Kommentiert: Deepa Maheshvare am 25 Apr. 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 Kommentare
Torsten
Torsten am 25 Apr. 2019
Set dy2/dt = 0. This makes y2 remain at its initial value.
Deepa Maheshvare
Deepa Maheshvare am 25 Apr. 2019
Thank you, everybody

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Mathematics finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by