Assigning a special character to a value

1 次查看(过去 30 天)
Is it possible to assign a special charachter to a value?
Something like: â=inv(A)*a.
Thanks in advance

采纳的回答

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

更多回答(1 个)

the cyclist
the cyclist 2019-11-1
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.)

类别

Help CenterFile Exchange 中查找有关 Characters and Strings 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by