%% Visualize Frequency Bands Around Characteristic Bearing Frequencies
% For this example, consider a damaged 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, visualize the fault frequency bands using bearingFaultBands.

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

% From the plot, observe the following bearing specific vibration frequencies:
% Cage defect frequency, Fc at 10.5 Hz.
% Ball defect frequency, Fb at 73 Hz.
% Outer race defect frequency, Fo at 83.9 Hz.
% Inner race defect frequency, Fi at 116.1 Hz.
% Copyright 2019 The MathWorks, Inc.