public void saveMatrix(Matice m, String s){
        try {
           // System.out.println(s);
            int k=m.GetPole().length,l=m.GetPole()[0].length;
            String insertSQL = "INSERT INTO APP.MATRICES (NAZEV, X, Y, MATRIX) VALUES (?, ?, ?, ?)";
            PreparedStatement preparedStatement = conn.prepareStatement(insertSQL);
            preparedStatement.setString(1, s);
            preparedStatement.setInt(2, l);
            preparedStatement.setInt(3, k);
            s=new String();
            for (int i = 0; i < k; i++) {
                for (int j = 0; j < l; j++) {
                    s+=String.format("%.4f",m.GetPole()[i][j])+" ";
                }
                s+="; ";
            }
            preparedStatement.setString(4, s);
            preparedStatement.executeUpdate();
        } catch (SQLException ex) {
            Logger.getLogger(Database.class.getName()).log(Level.SEVERE, null, ex);
        }
    }