Azzera filtri
Azzera filtri

Assigning a special character to a value

1 visualizzazione (ultimi 30 giorni)
Is it possible to assign a special charachter to a value?
Something like: â=inv(A)*a.
Thanks in advance

Risposta accettata

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

Più risposte (1)

the cyclist
the cyclist il 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.)

Categorie

Scopri di più su Characters and Strings 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