| Author |
Comment/Response |
Forum Moderator
email me
 |
03/26/12 11:35am
i-sub-L needs to be Clear'd, but it is not a variable.
Clear[Subscript[i, L]]
Clear::ssym: "Subscript[i, L] is not a symbol or a string."
Notes on making subscripted variables robust enough for executable code are attached. (If you don't _need_ a subscripted variable, just change i-sub-L to iL.)
The brute-force method is to quit and restart the Mathematica Kernel (Evaluation menu - Quit Kernel). For most cases, Clear can to the job,
In[3]:= a = 1; b = 2;
In[4]:= Clear["Global`*"]
In[5]:= {a, b}
Out[5]= {a, b}
(http://reference.wolfram.com/mathematica/howto/ClearMyDefinitions.html)
Attachment: SubscriptedVariables101.nb, URL: , |
|