how can i create discrete square wave with simulink

6 ビュー (過去 30 日間)
david chuang
david chuang 2020 年 4 月 14 日
コメント済み: Nikita Joshi 2022 年 1 月 8 日
i use the singal generator and zero order hold but it cant work
thanks a lot!!

回答 (1 件)

Guru Mohanty
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.
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 件のコメント
Nikita Joshi
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.

サインインしてコメントする。

タグ

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by