In Simulink, what does the Unit Delay block do to the input signal?
Think about how the block stores and outputs the previous input value.
The Unit Delay block outputs the input value from the previous simulation step, effectively delaying the signal by one time step.
Given a step input signal starting at 0 and switching to 1 at time step 3, what is the output of a Unit Delay block at time step 4?
Time steps: 0,1,2,3,4 Input: 0,0,0,1,1 Unit Delay output at time t = input at time t-1
Remember the output at time t is the input at time t-1.
At time 4, the output is the input at time 3, which is 1.
Given the input sequence [2, 4, 6, 8, 10] to a Unit Delay block with initial condition 0, what is the output sequence?
Input sequence: [2, 4, 6, 8, 10] Initial condition: 0 Output at time t = input at time t-1 (or initial condition at t=0)
The first output is the initial condition, then outputs previous inputs.
The output starts with the initial condition 0, then outputs each previous input value shifted by one step.
A user sets the initial condition of a Unit Delay block to a string value 'zero'. What error will Simulink produce when running the model?
Consider the data type requirements for initial conditions.
The initial condition must be numeric. Using a string causes a type mismatch error.
You want to compute the Fibonacci sequence in Simulink using Unit Delay blocks. Which setup correctly uses Unit Delay blocks to output the next Fibonacci number at each time step?
Recall Fibonacci numbers are sums of the two previous numbers.
Two Unit Delay blocks store the two previous Fibonacci numbers. Summing their outputs produces the next number.
