Register to reply

SIMULINK - need help

by FrogPad
Tags: simulink
Share this thread:
Jun18-07, 06:15 PM
P: 835
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!
Phys.Org News Partner Engineering news on
An innovative system anticipates driver fatigue in the vehicle to prevent accidents
Squink personal factory aims to make circuit prototyping easy
Catching grease to cut grill pollution

Register to reply

Related Discussions
Need help on Simulink Programming & Computer Science 1
Learning Simulink(Matlab) would help me build systems Engineering Systems & Design 1
Help on SIMULINK General Engineering 1
Simulink Question Engineering Systems & Design 0