How can I append zero & 1 (low & high level) with a pulse in Simulink?

I need to generate a signal that is, in start, zero for some specific time, then comes this pulse of specific amplitude, frequency, time period & duty cycle (can be generated using pulse generator block), then it is 1 for some time then again a pulse & then again 0 for the rest of the time axis. Can anybody propose a way to do that? I need this signal for Hybrid Multilevel Inverter. The image shows what it must roughly look like.

2 Comments

For starting you can set any arbitrary sampling time. I just need to know how it can be accomplished.

Sign in to comment.

 Accepted Answer

3 Comments

Yea it was quite helpful, thanks for that. But I am dealing with a frequency of 400 Hz that leaves us with a sampling time of 0.0025, so assigning vector values at that much level is quite a tedious job you know, so I was wondering if there was some alternate approach to do that may be!
Thank you sir! I got my required signal.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!