matlab code for taking very less sample
显示 更早的评论
I have to take a few samples from a sinusodial signal.I have generated sinusodial signal using sin. But i am unable to write the matlab code to take very less samples from that sinusodial signal.please help............
采纳的回答
更多回答(2 个)
Azzi Abdelmalek
2013-2-20
1 个投票
If you have a Signal Processing toolbox, you can use downsample function
Image Analyst
2013-2-20
Try this on the signal you have generated to take every 5th sample:
subSampledSignal = yourSignal(1:5:end);
Adapt as needed.
类别
在 帮助中心 和 File Exchange 中查找有关 Multirate Signal Processing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!