%% Frequency Bands Using Bearing Specifications
% For this example, consider a bearing with a pitch diameter of 12 cm with eight rolling elements. Each rolling element has a diameter of 2 cm. The outer race remains stationary as the inner race is driven at 25 Hz. The contact angle of the rolling element is 15 degrees.
%
% With the above physical dimensions of the bearing, construct the frequency bands using bearingFaultBands.

FR = 25;
NB = 8;
DB = 2;
DP = 12;
beta = 15;
FB = bearingFaultBands(FR,NB,DB,DP,beta)

% FB is returned as a 4x2 array with default frequency band width of 10 percent of FR which is 2.5 Hz. The first column in FB contains the values of F-
% \frac{W}{2}, while the second column contains all the values of F+
% \frac{W}{2} for each characteristic defect frequency.
% Copyright 2019 The MathWorks, Inc.
%