In this paper a software developed for the determination of winding connections, the calculation of winding factors and the evaluation of their harmonic distribution of three and two phase windings is presented by using as input data simply the number of slots, pole pairs and phases. The software is implemented as a function in MATLAB environment. By means of some examples, covering the most re…