Assigning a special character to a value

1 visualización (últimos 30 días)
Sebastian Daneli
Sebastian Daneli el 1 de Nov. de 2019
Respondida: Walter Roberson el 1 de Nov. de 2019
Is it possible to assign a special charachter to a value?
Something like: â=inv(A)*a.
Thanks in advance

Respuesta aceptada

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

Más respuestas (1)

the cyclist
the cyclist el 1 de Nov. de 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.)

Categorías

Más información sobre Characters and Strings en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by