Assigning a special character to a value

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

Accepted Answer

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

More Answers (1)

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

Categories

Find more on Characters and Strings in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!