![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/285292/image.png)
how can i create discrete square wave with simulink
8 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
i use the singal generator and zero order hold but it cant work
thanks a lot!!
0 commentaires
Réponses (1)
Guru Mohanty
le 17 Avr 2020
I understand you are trying to create a discrete square wave using Simulink. It can be done using Signal Generator and Zero Order Hold block.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/285292/image.png)
Scope >> View >> Style >> Line >> No Line
>> Marker >> ‘o’
I have attached a sample model.
1 commentaire
Nikita Joshi
le 8 Jan 2022
Whether you use zero-hold block or not. But by this step "Scope >> View >> Style >> Line >> No Line>> Marker >> ‘o’" you will directly get the discrete sampled signals.
So, meanwhile signal generator with sqaurewave creates the discrete signal.
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!