how define in matlab like c++

13 visualizzazioni (ultimi 30 giorni)
nitzan netzer
nitzan netzer il 15 Ago 2018
Modificato: James Tursa il 15 Ago 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 Commento
James Tursa
James Tursa il 15 Ago 2018
Modificato: James Tursa il 15 Ago 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.

Accedi per commentare.

Risposte (1)

Fangjun Jiang
Fangjun Jiang il 15 Ago 2018
even easier
>> g=9.8
g =
9.8000
  5 Commenti
nitzan netzer
nitzan netzer il 15 Ago 2018
ok,thank you very much for solution and fast answer very much. it's help me
Walter Roberson
Walter Roberson il 15 Ago 2018
Modificato: Walter Roberson il 15 Ago 2018

Accedi per commentare.

Categorie

Scopri di più su Software Development Tools in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by