Signals.and.Systems.with.MATLAB.Computing.and.Simulink.Modeling.4th_Part76

Signals.and.Systems.with.MATLAB.Computing.and.Simulink.Modeling.4th_Part76

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

View Full Document Right Arrow Icon
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
Background image of page 1

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

View Full DocumentRight Arrow Icon
Introduction to Simulink B 20 Signals and Systems with MATLAB Computing and Simulink Modeling, Fourth Edition Copyright © Orchard Publications An outstanding feature in Simulink is the representation of a large model consisting of many blocks and lines, to be shown as a single Subsystem block. * For instance, we can group all blocks and lines in the model of Figure B.19 except the display blocks, we choose Create Subsystem from the Edit menu, and this model will be shown as in Figure B.20 where in MATLAB’s Com- mand prompt we have entered: a1=5; a2= 1; a3=4; a4=11; a5=6; a6=9; a7= 8; a8=4; a9=15;. .. k1=14; k2= 6; k3=9; Figure B.20. The model of Figure B.19 represented as a subsystem The Display blocks in Figure B.20 show the values of , , and for the values specified in MATLAB’s Command prompt. B.2 Simulink Demos At this time, the reader with no prior knowledge of Simulink, should be ready to learn Simulink’s additional capabilities. It is highly recommended that the reader becomes familiar with the block libraries found in the Simulink Library Browser. Then, the reader can follow the steps delineated in The MathWorks Simulink User’s Manual to run the Demo Models beginning with the thermo model. This model can be seen by typing thermo in the MATLAB Command prompt. * The Subsystem block is described in detail in Chapter 2, Section 2.1, Page 2 2, Introduction to Simulink with Engineering Applications, ISBN 0 9744239 7 1.
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 8

Signals.and.Systems.with.MATLAB.Computing.and.Simulink.Modeling.4th_Part76

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online