I have a very basic syntax question for declaring $X_{hb}$ a variable.
f[Subscript[X, hb_]] := Subscript[X, hb]
In mathematica instead of writing the Subscript[] code, I simply use the ctrl+_ shortcut to place whatever I want in the subscript. However, after doing this I do not know how make mathematica consider $X_{hb}$ as a variable since placing the _ after it is considered to be an unrealted character.
See here: https://i.stack.imgur.com/JGz8F.png
How do I fix this issue?
(http://mathematica.stackexchange.com/questions/13741/how-to-create-symbol-whose-name-has-subscript)
– Searke Apr 08 '16 at 18:13f[hb_]:=Subscript[X, hb]. – Kagaratsch Apr 08 '16 at 18:20X[hb]in a subscripted form.Format[X[hb_]] := Subscript[X, hb]; {X[hb], X[a], X[1]}– Bob Hanlon Apr 08 '16 at 19:00OwnValues,DownValues,UpValues, andSubValues. – march Apr 08 '16 at 21:09