Sampling a sine wave according to a variable magnitude pulse pattern
1 次查看(过去 30 天)
显示 更早的评论
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)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/148229/image.jpeg)
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?
回答(0 个)
另请参阅
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!