Professional Documents
Culture Documents
m 1 of 2
close all
clear all
clc
N = 10 ; %Numero de bolas
F = 60 ; %Frecuencia del eje
g_s= 1.4; %Valor del gs peak a las RPM del eje tomado de la tabla 1. del articulo guia
g = 9.8 ; % Aceleración gravedad
C_BPFO = g_s*g ;
C_BPFI = 0.01*randn()*C_BPFO;
C_BSF = 0.01*randn()*C_BPFO;
C_FTF = randn()*C_BPFO;
X_BPFO= C_BPFO*sin(BPFO*2*pi*t);
X_BPF1= C_BPFI*sin(BPFI*2*pi*t);
X_BSF= C_BSF*sin(BSF*2*pi*t);
X_FTF= C_FTF*sin(FTF*2*pi*t);
X=X_BPFO+X_BPF1+X_BSF+X_FTF;
Y=fft(X);
P2=abs(Y/L);
P1=P2(1:L/2+1);
P1(2:end-1)=2*P1(2:end-1);
f=Fs*(0:(L/2))/L;
figure
plot(t,X)
hold on
plot(t,C_BPFO,'g')
plot(t,2*C_BPFO,'c')
plot(t,4*C_BPFO,'y')
plot(t,8*C_BPFO,'r')
%Z= [C_PBFO;
% 2*C_BPFO;
% 4*C_BPFO;
% 8*C_BPFO];
%area(Z)
8/09/18 07:46 AM G:\Mi unidad\2018 -...\Senal_rodamiento.m 2 of 2
figure
plot(f,P1)
title('Magnitud Velocidad Spectro of F[X(t)](w)')
xlabel('f (Hz)')
ylabel('|P1(f)|')