我有一个由点数定义的线数组:
{{{340.754, 681.}, {361.889, 0.}}, {{760.286, 681.}, {775.156,0.}},
{{398.028, 681.}, {420.73, 0.}}, {{0, 681.}, {239.46, 0.}},
{{175.78, 681.}, {190.651, 0.}}}
我想删除第一个 x 点等于零的线。尝试过这样的事情:
For[i = Length[lines], i > 0, i--,
If [lines[[i]][[1]][[1]] = 0, Delete[lines, i], 0]]
...但它不工作。帮助!