A meshless method to the solution of an ill-posed problem