I am a HUGE newbie when it comes to Simulink.(adsbygoogle = window.adsbygoogle || []).push({});

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: [tex] u(t) [/tex] be a step function

let: [tex] \hat u(t,a,b) = u(t-a) - u(t-b) [/tex]

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

[tex] 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) [/tex]

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

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

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!

**Physics Forums - The Fusion of Science and Community**

# SIMULINK - need help

Know someone interested in this topic? Share a link to this question via email,
Google+,
Twitter, or
Facebook

Have something to add?

- Similar discussions for: SIMULINK - need help

Loading...

**Physics Forums - The Fusion of Science and Community**