1. Jun 18, 2007

I am a HUGE newbie when it comes to Simulink.

I am trying to use it to help with test procedures for a project I am working on at work. I am trying to use the Signal Builder to generate an input of the form:

let: $$u(t)$$ be a step function
let: $$\hat u(t,a,b) = u(t-a) - u(t-b)$$

The input signal I am trying to generate would in general be of the form:

$$s(t,\vec a, \vec b) = \hat u(t,a_1,b_1) + \hat u(t,a_2, b_2) + \ldots + \hat u(t,a_n, b_n)$$

for example) If I use the Signal Builder, and go to Signal -> New -> Pulse I might get something like $$\hat u(t, 0.1, 0.2)$$

Now how I could I have two pulses, i.e. $$x(t) = \hat u(t,0.1,0.2) + \hat u(t,0.4,0.5)$$ ??

The closest I can come is going, Signal -> New -> Custom then:
Time Values: [0 0.001 0.1 0.1001 0.2 0.2001 0.4 0.4001 0.5 0.5001]
Y Values: [0 0 0 1 1 0 0 1 1 0]

Which I guess would work, but it seems like a hack implementation.

Any help on this would be amazing. Thanks!