Указано,
Код:
j \[Element] {1, 2, 3}
Данные
Код:
data1 = {};
data2 = {};
data3 = {};
In[49]:= GoodData
Out[49]= {{1, 14.23, 2.8}, {1, 13.2, 2.65}, {1, 13.16, 2.8}, {1,
14.37, 3.85}, {1, 13.24, 2.8}, {1, 14.2, 3.27}, {1, 14.39, 2.5}, {1,
14.06, 2.6}, {1, 14.83, 2.8}, {1, 13.86, 2.98}, {1, 14.1,
2.95}, {1, 14.12, 2.2}, {1, 13.75, 2.6}, {1, 14.75, 3.1}, {1, 14.38,
3.3}, {1, 13.63, 2.85}, {1, 14.3, 2.8}, {1, 13.83, 2.95}, {1,
14.19, 3.3}, {1, 13.64, 2.7}, {1, 14.06, 3.}, {1, 12.93, 2.41}, {1,
13.71, 2.61}, {1, 12.85, 2.48}, {1, 13.5, 2.53}, {1, 13.05,
2.63}, {1, 13.39, 2.85}, {1, 13.3, 2.4}, {1, 13.87, 2.95}, {1,
14.02, 2.65}, {1, 13.73, 3.}, {1, 13.58, 2.86}, {1, 13.68,
2.42}, {1, 13.76, 2.95}, {1, 13.51, 2.35}, {1, 13.48, 2.7}, {1,
13.28, 2.6}, {1, 13.05, 2.45}, {1, 13.07, 2.4}, {1, 14.22, 3.}, {1,
13.56, 3.15}, {1, 13.41, 2.45}, {1, 13.88, 3.25}, {1, 13.24,
2.64}, {1, 13.05, 3.}, {1, 14.21, 2.85}, {1, 14.38, 3.25}, {1, 13.9,
3.1}, {1, 14.1, 2.75}, {1, 13.94, 2.88}, {1, 13.05, 2.72}, {1,
13.83, 2.45}, {1, 13.82, 3.88}, {1, 13.77, 3.}, {1, 13.74, 2.6}, {1,
13.56, 2.96}, {1, 14.22, 3.2}, {1, 13.29, 3.}, {1, 13.72, 3.4}, {2,
12.37, 1.98}, {2, 12.33, 2.05}, {2, 12.64, 2.02}, {2, 13.67,
2.1}, {2, 12.37, 3.5}, {2, 12.17, 1.89}, {2, 12.37, 2.42}, {2,
13.11, 2.98}, {2, 12.37, 2.11}, {2, 13.34, 2.53}, {2, 12.21,
1.85}, {2, 12.29, 1.1}, {2, 13.86, 2.95}, {2, 13.49, 1.88}, {2,
12.99, 3.3}, {2, 11.96, 3.38}, {2, 11.66, 1.61}, {2, 13.03,
1.95}, {2, 11.84, 1.72}, {2, 12.33, 1.9}, {2, 12.7, 2.83}, {2, 12.,
2.42}, {2, 12.72, 2.2}, {2, 12.08, 2.}, {2, 13.05, 1.65}, {2, 11.84,
2.2}, {2, 12.67, 2.2}, {2, 12.16, 1.78}, {2, 11.65, 1.92}, {2,
11.64, 1.95}, {2, 12.08, 2.2}, {2, 12.08, 1.6}, {2, 12., 1.45}, {2,
12.69, 1.38}, {2, 12.29, 2.45}, {2, 11.62, 3.02}, {2, 12.47,
2.5}, {2, 11.81, 1.6}, {2, 12.29, 2.55}, {2, 12.37, 3.52}, {2,
12.29, 2.85}, {2, 12.08, 2.23}, {2, 12.6, 1.45}, {2, 12.34,
2.56}, {2, 11.82, 2.5}, {2, 12.51, 2.2}, {2, 12.42, 1.68}, {2,
12.25, 1.65}, {2, 12.72, 1.38}, {2, 12.22, 2.36}, {2, 11.61,
2.74}, {2, 11.46, 3.18}, {2, 12.52, 2.55}, {2, 11.76, 1.75}, {2,
11.41, 2.48}, {2, 12.08, 2.56}, {2, 11.03, 2.46}, {2, 11.82,
1.98}, {2, 12.42, 2.}, {2, 12.77, 1.63}, {2, 12., 2.}, {2, 11.45,
2.9}, {2, 11.56, 3.18}, {2, 12.42, 2.2}, {2, 13.05, 2.62}, {2,
11.87, 2.86}, {2, 12.07, 2.6}, {2, 12.43, 2.74}, {2, 11.79,
2.13}, {2, 12.37, 2.22}, {2, 12.04, 2.1}, {3, 12.86, 1.51}, {3,
12.88, 1.3}, {3, 12.81, 1.15}, {3, 12.7, 1.7}, {3, 12.51, 2.}, {3,
12.6, 1.62}, {3, 12.25, 1.38}, {3, 12.53, 1.79}, {3, 13.49,
1.62}, {3, 12.84, 2.32}, {3, 12.93, 1.54}, {3, 13.36, 1.4}, {3,
13.52, 1.55}, {3, 13.62, 2.}, {3, 12.25, 1.38}, {3, 13.16, 1.5}, {3,
13.88, 0.98}, {3, 12.87, 1.7}, {3, 13.32, 1.93}, {3, 13.08,
1.41}, {3, 13.5, 1.4}, {3, 12.79, 1.48}, {3, 13.11, 2.2}, {3, 13.23,
1.8}, {3, 12.58, 1.48}, {3, 13.17, 1.74}, {3, 13.84, 1.8}, {3,
12.45, 1.9}, {3, 14.34, 2.8}, {3, 13.48, 2.6}, {3, 12.36, 2.3}, {3,
13.69, 1.83}, {3, 12.85, 1.65}, {3, 12.96, 1.39}, {3, 13.78,
1.35}, {3, 13.73, 1.28}, {3, 13.45, 1.7}, {3, 12.82, 1.48}, {3,
13.58, 1.55}, {3, 13.4, 1.98}, {3, 12.2, 1.25}, {3, 12.77,
1.39}, {3, 14.16, 1.68}, {3, 13.71, 1.68}, {3, 13.4, 1.8}, {3,
13.27, 1.59}, {3, 13.17, 1.65}}
In[14]:= For[i = 1, i <= Length[GoodData], i++,
obj = Join[{GoodData[[i]][[2]]}, {GoodData[[i]][[3]]}];
If[GoodData[[i]][[1]] == 1, AppendTo[data1, obj]];
If[GoodData[[i]][[1]] == 2, AppendTo[data2, obj]];
If[GoodData[[i]][[1]] == 3, AppendTo[data3, obj]]];