0
$\begingroup$
ClearAll["Global`*"]

doesn't clear subscripted variables. It won't clear these variables for example.

Subscript[x, D] = {{0.97, 0.95, 0.93, 0.94, 0.96}}
Subscript[x, B] = {{0.04, 0.05, 0.06, 0.06, 0.04}}
$\endgroup$
4
  • $\begingroup$ Related: mathematica.stackexchange.com/a/46239/1871 $\endgroup$
    – xzczd
    Feb 10, 2016 at 2:59
  • $\begingroup$ Welcome to Mathematica.SE! I suggest the following: 1) As you receive help, try to give it too, by answering questions in your area of expertise. 2) Take the tour! 3) When you see good questions and answers, vote them up by clicking the gray triangles, because the credibility of the system is based on the reputation gained by users sharing their knowledge. Also, please remember to accept the answer, if any, that solves your problem, by clicking the checkmark sign! $\endgroup$
    – Michael E2
    Feb 10, 2016 at 3:10
  • $\begingroup$ You can format inline code and code blocks by selecting the code and clicking the {} button above the edit window. The edit window help button ? is also useful for learning how to format your questions and answers. You may also find this this meta Q&A helpful $\endgroup$
    – Michael E2
    Feb 10, 2016 at 3:11
  • 1
    $\begingroup$ Please don't use subscripts until you're really proficient in Mathematica. See mathematica.stackexchange.com/a/18395/193 $\endgroup$ Feb 10, 2016 at 3:12

1 Answer 1

2
$\begingroup$

Subscript[x, D], etc., are expressions, not variables. Your definitions are stored as down-values of the symbol Subscript. You need to use

ClearAll[Subscript]
$\endgroup$

Not the answer you're looking for? Browse other questions tagged or ask your own question.