How to create a grid for harmonics in plotted spectrum

4 ビュー (過去 30 日間)
bishop Rab
bishop Rab 2019 年 1 月 5 日
コメント済み: Star Strider 2019 年 1 月 7 日
I'm using a Hilbert function for a given temporel signal (acceleration,number of data points 4063) ,then i use the FFT to obtain the spectrum(250 points),my question is when i plot the spectrum how i can plot a grid or diffrent grids for a given harmonics (20 harmonics) so i can analyze the plot easily and compare it .
I'm using Matlab R2015b.
thank you.

回答 (1 件)

Star Strider
Star Strider 2019 年 1 月 5 日
I am not certain what you want.
One possibility could be to use the findpeaks (link) function to locate the peaks and locations of your Fourier transformed data, then plot the individual peaks and locations with the stem plot function. The findpeaks results would also allow you to compare the results numerically as well as graphically.
  4 件のコメント
bishop Rab
bishop Rab 2019 年 1 月 7 日
Thank you Star Strider for your answers i appreciate your help
I found this
RotatingMachineryv2Example_15.png
i think that ( meshgrid ) can help also ,i'm still working on it ,it didn't work with my plot,i'm trying again.
Star Strider
Star Strider 2019 年 1 月 7 日
If you want the vertical grid lines, use the 'xGrid' (link) axes property.
Example:
figure
plot(x, y)
set(gca, 'XGrid','on')

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeDescriptive Statistics についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by