public static void writeMatrix(float[][] matrix, int SliceNum){
		try {
            File file = new File("WSDream-QoSDataset3/Slice/Slice"+SliceNum+".txt");
            BufferedWriter writer = new BufferedWriter(new FileWriter(file));
            String line = "";
            for(int i =0; i < matrix.length; i++) {
            	for(int j=0; j < matrix[0].length; j++) {
            		line += matrix[i][j] + "\t";
            	}
            	writer.write(line);
            	if (i < matrix.length -1) {
            		writer.newLine();
            	}
            	line = "";
            }
            writer.flush();
            writer.close();
        } catch (Exception e) {
            e.printStackTrace();
        }
	}