Sampling a sine wave according to a variable magnitude pulse pattern

3 visualizzazioni (ultimi 30 giorni)
Hello. I have encountered to a problem while sampling the sin(20*pi*t) (T=0.1s) exactly according to a periodic variable magnitude pulse pattern like this: (pulse magnitudes should be sampling times of sine wave)
The above pic is a periodic funtion and can be represented as the following function:
if 0<t<=0.005 f(t)=0.005
if 0.005<t<=0.03 f(t)=0.025
if 0.03<t<=0.045 f(t)=0.015
if 0.045<t<=0.055 f(t)=0.01
if 0.055<t<=0.070 f(t)=0.015
if 0.070<t<=0.095 f(t)=0.025
if 0.095<t<=0.1 f(t)=0.005
does any one have an idea or a sample mdl file to sample the sine wave with variable step time that is equal ti pulse pattern signal?

Risposte (0)

Categorie

Scopri di più su Simulink in Help Center e File Exchange

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by