MATLAB Answers

How to assign time on x-axis in emd?

1 view (last 30 days)
Jan Ali
Jan Ali on 10 May 2021
Commented: Mathieu NOE on 16 May 2021
I am using the built in function emd(x), but I can't get the time periode I used for the signal, instead there are samples on the x-axis.
Can anyone help me with assigning time vector on the x-axis for emd?
Thanks in advance,

Answers (1)

Mathieu NOE
Mathieu NOE on 11 May 2021
if you know your sampling frequency (Fs) of the original data , and the length of the data , it's fairly straithforward :
dt = 1/Fs;
time = (0:samples-1) * dt;
Mathieu NOE
Mathieu NOE on 16 May 2021
hello Jan
I thought the topic has already been answered - in another post (about the same exact question ??)

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!