This paper presents a new approach for the efficient and accurate solution of Singular Optimal Control Problems (SOCP). A novel feature of the proposed method is that it does not require a priori knowledge of the structure of the solution. As the first step of this method, the SOCP is converted into a binary optimal control problem. Then, by utilizing the pseudospectral method, the resulting problem is transcribed to a mixed-binary non-linear programming problem. This mixed-binary non-linear programming problem, which can be solved by well-known solvers, allows us to detect the structure of the original optimal control and to compute the approximating solution of it (getting both the optimal state and control). The main advantages of the present method are that: (i) without a priori information, the structure of optimal control is detected; (ii) it produces good results even using a small number of collocation points; and (iii) the switching times can be captured accurately. These advantages are illustrated through a numerical implementation of the method on four examples.