Info

This question is closed. Reopen it to edit or answer.

PSD for beairng faults

1 view (last 30 days)
Jayson  Abraham
Jayson Abraham on 20 Aug 2012
Closed: MATLAB Answer Bot on 20 Aug 2021
Hi guys, Below is a code for PSD for a good bearing and faulty bearing plotted ( showing the change ). I want to plot on the same a graph the difference between them wondering if anyone can help with it. Thanks in advances
vert_data_avg_good = (goodbear(:,1)-mean(goodbear(:,1))); [Pyy,l]=pwelch(vert_data_avg_good,hanning(512),[],[],fs); semilogy(l,Pyy,'r'); hold on; [Pxx,f]=pwelch(vert_data_avg,hanning(512),[],[],fs); semilogy(f,Pxx,'b'); legend('Good bearing', 'Faulty Inner'); title('PSD on semilog scale');
Jayson Abraham

Answers (0)

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!