(a)
From the given model in Matlab Simulink, when the magnitude of sine wave is greater than zero. The scope shows the value of 1. Otherwise, the scope shows the value of -1.
-----------------------------------------------------------------------------------------------------------------------------------------------------
(b)


----------------------------------------------------------------------------------------------------------------------------------------
(c)

The product block is used to multiply the two scalars and nonscalar values which have the same dimensions.

This is the Gain block which used to multiply a constant value to the input. The input and the gain may be a scalar, vector, or matrix.

The Mux block is used to combine its inputs into a single vector output. All inputs must be of the same data type and numeric type. The inputs can be a scalar or vector signal.

The Derivative block gives the derivation of the input signal u with respect to the simulation time t.

The Step block is used to generate the step function at a specified time.

In-port blocks are the links from outside a system into the system.

The XY Graph block is used to display an X-Y plot of its inputs that are scalar values. The block plots data in the first input i.e. the x-direction against data in the second input i.e. the y-direction.

The Scope block belongs to the sink libraries which displays inputs signals with respect to simulation time.
-----------------------------------------------------------------------------------------------------------------------------------------------
a) Given Model if-else control flow in Matlab Simulink, explain the following result Scope Subsystemt Sine Wave up 200 150 50 100 Constantt Time offset 0 3t2 + 2t -0.5 b) Sketch model to plot the...
You have the matrix below: a) 9 10 11 12 What will be displayed by the code: A(2:3,2:3) What will be displayed when you run the code below? b) a-0 while a<10 aa+3: end disp (a) d) Give the steps to find the roots of the following linear equation using MATLAB. rs + 2x4-5x3 + 7x2 + 12x + 20 = 0 a) Give MATLAB commands to plot, on the same figure, the two functions: f(t) = 3t2 +2t-0.5 g(c)-2t...