## Counting Degrees of Freedom

The number and types of joints, gears, and constraints in a mechanism partially determine its mobility—the total number of degrees of freedom, or DoFs, that the mechanism provides and therefore the minimum number of input variables needed to fully constrain its configuration. The mobility F of a mechanism with N bodies and j joints, each with f DoFs follows from expressions such as the Kutzbach criterion, which for a planar mechanism states:

`$F=3\left(N-1\right)-\sum _{i=1}^{j}\left(3-{f}_{i}\right)$`

Applying this criterion to a four-bar linkage, an assembly of four bodies (n = 4) and four joints (j = 4) with one rotational DoF each (fi = 1), yields a mobility of one DoF—indicating that a single input variable suffices to fully control the linkage configuration. As mechanisms grow in complexity, manually calculating total DoFs becomes more time-consuming, so Simscape™ Multibody™ automatically computes them for you.

You can view the mechanism DoFs through the Simscape Statistics Viewer, shown below for the four-bar featured example. You open the Statistics Viewer. In the Apps gallery, click . Enter `sm_four_bar` at the MATLAB® command prompt to open the four-bar model and view its DoFs through the Statistics Viewer.