matlab code for taking very less sample
Mostrar comentarios más antiguos
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............
Respuesta aceptada
Más respuestas (2)
Azzi Abdelmalek
el 20 de Feb. de 2013
1 voto
If you have a Signal Processing toolbox, you can use downsample function
Image Analyst
el 20 de Feb. de 2013
Try this on the signal you have generated to take every 5th sample:
subSampledSignal = yourSignal(1:5:end);
Adapt as needed.
Categorías
Más información sobre Multirate Signal Processing en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!