Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

SIMULINK - need help

  1. Jun 18, 2007 #1
    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: [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!
  2. jcsd
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook

Can you offer guidance or do you also need help?
Draft saved Draft deleted