# Reference page for calculate_winding_factor

## Contents

## calculate_winding_factor Winding factor calculation.

wf = **calculate_winding_factor**(ps, W) calculates the winding factors

Input arguments: - ps: pole-pair numbers ps for which to calculate factor - W : winding configuration matrix.

Returns: - wf : 2 x numel(ps) array of winding factors. Factors for forward-rotating waves on the first row; backward-rotating on the second.

NOTE: The function returns mmf-style factors, i.e. proportional to 1./ps. Multiply the results by p if appropriate.

(c) 2019 Antti Lehikoinen / Smeklab Ltd