how define in matlab like c++

7 vues (au cours des 30 derniers jours)
nitzan netzer
nitzan netzer le 15 Août 2018
Modifié(e) : James Tursa le 15 Août 2018
hi i am new on matlab, i want to know who i define Constants like gravitation. in c++ it was super easy (define g=9.8) but in matlab i don't understand it.
  1 commentaire
James Tursa
James Tursa le 15 Août 2018
Modifié(e) : James Tursa le 15 Août 2018
If you mean something equivalent to the "const" keyword attribute for a variable, then no MATLAB does not have this capability for basic numeric variables.

Connectez-vous pour commenter.

Réponses (1)

Fangjun Jiang
Fangjun Jiang le 15 Août 2018
even easier
>> g=9.8
g =
9.8000
  5 commentaires
nitzan netzer
nitzan netzer le 15 Août 2018
ok,thank you very much for solution and fast answer very much. it's help me
Walter Roberson
Walter Roberson le 15 Août 2018
Modifié(e) : Walter Roberson le 15 Août 2018

Connectez-vous pour commenter.

Catégories

En savoir plus sur Software Development Tools 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