MATLAB Answers

How to write code for a function x(t), consist of two sine wave with instantaneous frequencies at different time spot as seen in figure below:

3 views (last 30 days)
Jan Ali
Jan Ali on 27 Oct 2020
Commented: Stephan on 27 Oct 2020
Could any one help me how to write the Matlab code for this function in order to plot the Hilbert spectrum?


Sign in to comment.

Accepted Answer

Stephan on 27 Oct 2020
syms t
y = piecewise((0<t)&(t<=2), sin(2*pi*5*t), (2<t)&(t<=5), sin(2*pi*40*t))

More Answers (0)

Community Treasure Hunt

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

Start Hunting!

Translated by