How to plot actual time on x-axis in emd

1 回表示 (過去 30 日間)
Jan Ali
Jan Ali 2021 年 5 月 7 日
コメント済み: Jan Ali 2021 年 5 月 11 日
I am using the built in function for EMD, but I can't get the time periode I used for the signal.
Can anyone help me with assigning time vector on the x-axis for emd?
Thanks in advance,

採用された回答

Alan Moses
Alan Moses 2021 年 5 月 10 日
You could manually change the axes labels. You may refer to the gca function which returns a handle to the current axes in the current figure. You may also try adding the following lines to manually change the axes labels on the EMD plot:
%Add the following lines after the EMD function call
a = 5083:5093; %time vector
ax = gca; %fetches handle to EMD plot
ax.XLim(1) = 0; %adjusting x-axis to start from 0
ax.XTickLabel = num2cell(a); %manually changes the x-axis labels
  3 件のコメント
Alan Moses
Alan Moses 2021 年 5 月 11 日
You may refer to the linspace function to solve this issue. You may modify the vector 'a' as follows to display a range between 726-728.
a = linspace(726,728,11); %11 points generated linearly between 726 and 728
Jan Ali
Jan Ali 2021 年 5 月 11 日
Thanks again, however the time points are not plotted precisely.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeAxis Labels についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by