how can i create discrete square wave with simulink
6 次查看(过去 30 天)
显示 更早的评论
i use the singal generator and zero order hold but it cant work
thanks a lot!!
0 个评论
回答(1 个)
Guru Mohanty
2020-4-17
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.
Scope >> View >> Style >> Line >> No Line
>> Marker >> ‘o’
I have attached a sample model.
1 个评论
Nikita Joshi
2022-1-8
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.
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!