Effacer les filtres
Effacer les filtres

Assigning a special character to a value

1 vue (au cours des 30 derniers jours)
Sebastian Daneli
Sebastian Daneli le 1 Nov 2019
Is it possible to assign a special charachter to a value?
Something like: â=inv(A)*a.
Thanks in advance

Réponse acceptée

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

Plus de réponses (1)

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

Catégories

En savoir plus sur Characters and Strings dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by