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!