![op.png](https://www.mathworks.com/matlabcentral/answers/uploaded_files/222993/op.png)
How do I apply a pulse shaping filter on a bit stream supplied?.
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I have a data pattern 11100100. And I want to generate matlab plots with 3 pulse shapes p(t), namely: square pulse, raised cosine pulse in time domain from 0 to T and raised cosine pulse in frequency domain from 0 to 6T by applying these pulse shaping filters on the binary data.
Any help is much appreciated.
0 commentaires
Réponses (1)
KALYAN ACHARJYA
le 4 Juin 2019
Square Pulse:
data=[1 1 1 0 0 1 0 0];
stairs([data,data(end)],'r','linewidth',2);
![op.png](https://www.mathworks.com/matlabcentral/answers/uploaded_files/222993/op.png)
next try by yourself
2 commentaires
KALYAN ACHARJYA
le 4 Juin 2019
Modifié(e) : KALYAN ACHARJYA
le 4 Juin 2019
Is this one you are looking for?
data=[1 1 1 0 0 1 0 0]
subplot(311),stairs([data,data(end)],'r','linewidth',2);
title('Data');
filt=randi([0 1],1,length(data)) % Random Pulse filter Choosen
subplot(312),stairs([filt,filt(end)],'g','linewidth',2);
title('Pilse Shape filter')
result=data & filt
subplot(313),stairs([result,result(end)],'b','linewidth',2);
title('Filtered Data');
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/223003/image.png)
Requested you to try others by yourself.
Voir également
Catégories
En savoir plus sur Matched Filter and Ambiguity Function dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!