Filter löschen
Filter löschen

Assigning a special character to a value

1 Ansicht (letzte 30 Tage)
Sebastian Daneli
Sebastian Daneli am 1 Nov. 2019
Beantwortet: Walter Roberson am 1 Nov. 2019
Is it possible to assign a special charachter to a value?
Something like: â=inv(A)*a.
Thanks in advance

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 1 Nov. 2019
The closest you can get these days is to create a table object and then something like
MyTable.('â') = value ;

Weitere Antworten (1)

the cyclist
the cyclist am 1 Nov. 2019
You can use the isvarname function to determine if something is a valid MATLAB variable name.
The naming rules are here. (I suppose there may be some nuances varying by region or language setting, but I don't think so.)

Kategorien

Mehr zu Characters and Strings 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