how can i create discrete square wave with simulink

6 visualizaciones (últimos 30 días)
david chuang
david chuang el 14 de Abr. de 2020
Comentada: Nikita Joshi el 8 de En. de 2022
i use the singal generator and zero order hold but it cant work
thanks a lot!!

Respuestas (1)

Guru Mohanty
Guru Mohanty el 17 de Abr. de 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.
You Can Visualize discrete signal by Scope Block with some changed Settings.
Scope >> View >> Style >> Line >> No Line
>> Marker >> ‘o’
I have attached a sample model.
  1 comentario
Nikita Joshi
Nikita Joshi el 8 de En. de 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.

Iniciar sesión para comentar.

Etiquetas

Productos


Versión

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by