(emd) How to get script/code from a figure/plot ?

29 views (last 30 days)
Jan Ali
Jan Ali on 24 Oct 2020
Commented: Jan Ali on 27 Oct 2020
To plot emd for a function (x), I just write a synthetic signal and when I run emd(x), the signal components (imfs) will be shown on the figure. However, I want to know how the IMFs are created, and how to get the code for the given figure/plot.
Meanwhile, can any one share a code for imf ploting?

Answers (1)

Ameer Hamza
Ameer Hamza on 24 Oct 2020
In the figure window, go to File > Generate code. It will show the MATLAB code to generate such a figure.
  1 Comment
Jan Ali
Jan Ali on 27 Oct 2020
Thanks for the answer. However, the codes inidcate only the figures characteristics , not the IMFs. F.exp, it only show XData1.... and so on.

Sign in to comment.

Tags

Community Treasure Hunt

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

Start Hunting!