Info

此问题已关闭。 请重新打开它进行编辑或回答。

PSD for beairng faults

1 次查看(过去 30 天)
Jayson  Abraham
Jayson Abraham 2012-8-20
关闭: MATLAB Answer Bot 2021-8-20
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

回答(0 个)

标签

Community Treasure Hunt

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

Start Hunting!

Translated by