MATLAB Matlab Pwelch: Changing Units of Plot - Urgent Help

AI Thread Summary
The discussion centers on simulating vibrations in Simulink and processing the results in MATLAB, specifically focusing on plotting the Power Spectral Density (PSD) of acceleration results using the Pwelch method. The user, Dan, is encountering issues with the Y-axis of the PSD plots, which are currently displayed in dB/Hz, and seeks guidance on converting these results to acceleration units (ms^-2) to align with the simulation's units. Additionally, Dan requests advice on smoothing the PSD plots by applying a line of best fit to the Pwelch values obtained. The urgency of the request is highlighted, as Dan needs to finalize the results by the end of the day.
19dan87
Messages
5
Reaction score
0
Hi,
I am simulating vibrations in simulink and processing my results in matlab. I am trying plot the PSD for my acceleration results using pwlech method.
When I plot the PSD plots from the methods below
(NOTE:I have a sampling rate of 0.006 so that means I am using a sample frequency of Fs=1/0.006=166)
Pwelch(x,[],[],2024,fs)
Or [Pxx,f]=pwelch(x,[],[],2024,fs) plot(f,Pxx)
The results on the Y axis are in the form of dB/Hz. How do I changed the plot/results so that I can plot PSD acceleration, ie. ms^-2 back . I want to show the plots in the form of the units used in the simulations.

Thanks
Dan
 
Physics news on Phys.org
also I it would be best if I could show the results of the PSD plots as a smooth line by putting some kind of line of best git through the pwelch values obtained.

Any advice on the above 2 questions will be much appreciated since I have to find a way of doing this into show my results by the end of today.

Thanks

Dan
 

Similar threads

Replies
6
Views
3K
Replies
1
Views
3K
Replies
3
Views
8K
Replies
1
Views
2K
Replies
1
Views
367
Back
Top