This preview shows pages 1–3. Sign up to view the full content.

Signals and Systems with MATLAB Computing and Simulink Modeling, Fourth Edition B 19 Copyright © Orchard Publications Simulink and its Relation to MATLAB The model is shown in Figure B.19. Figure B.19. Model for Example B.3 Next, we go to MATLAB’s Command prompt and we enter the following values: a1=2; a2= 3; a3= 1; a4=1; a5=5; a6=4; a7= 6; a8=1; a9=2;. .. k1= 8; k2= 7; k3=5; After clicking on the simulation icon, we observe the values of the unknowns as , , and .These values are shown in the Display blocks of Figure B.19. The Algebraic Constraint block constrains the input signal to zero and outputs an algebraic state . The block outputs the value necessary to produce a zero at the input. The output must affect the input through some feedback path. This enables us to specify algebraic equations for index 1 differential/algebraic systems (DAEs). By default, the Initial guess parameter is zero. We can improve the efficiency of the algebraic loop solver by providing an Initial guess for the alge- braic state z that is close to the solution value. z 1 2 = z 2 3 = z 3 5 = fz () z

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document