理论code:
private double[][][] CoordReconstruct(double[] arr ) { double[] subSubArr=new double[2]; double[][] subArr=new double[yAxis+1][]; for (int i = 0; i < yAxis + 1;i++ ) { subArr[i] = subSubArr; } double[][][] newArr=new double[xAxis+1][][]; for (int i = 0; i < xAxis + 1; i++) { newArr[i] = subArr; } int index = 0; for (int j = 0; j < yAxis; j++) { for (int i = 0; i < xAxis; i++) { for (int fla = 0; fla < 2; ) { newArr[i][j][fla] = arr[index]; index++; fla++; } } } return newArr; }