0
votes

The signals are: enter image description here

Tb is bit time = 0.001s. Basically, first is square wave with 50% duty cycle and second is with 100 percent duty cycle. I tried using Pulse Generator, it is not giving me negative output and it does not let me choose 100 for duty cycle.

How can I do this in Simulink?

1
you've drawn a few step functions (e.g., for any time after T_b, the signal maintains a value of 0), but your explanation of those signals seems to indicate that the signals are periodic (e.g., every T_b seconds, you have the same pattern); is this true? - Rody Oldenhuis
@RodyOldenhuis Yes, that's correct. The signals are periodic with period T_b and continues after. it's not zero after T_b. - banu reddy

1 Answers

1
votes

Behold, the Simulink model that generates the first signal:

Simulink model

The amplitude of the Pulse Generator is set to 2/sqrt(Tb), the duty cycle to 50%, and the period to Tb, where Tb is a variable in the (model) workspace.

As for the second graph; a square wave with 100% duty cycle:

enter image description here

There is, of course, no difference between a constant-valued signal and a square wave with 100% duty cycle, which is what Simulink nags about. I don't know why the Mathworks decided to explicitly forbid 100% duty cycles from Pulse Generator blocks, but oh well.