Republic of the Philippines
BATANGAS STATE UNIVERSITY
The National Engineering University
Alangilan Campus
Golden Country Homes, Alangilan Batangas City, Batangas, Philippines 4200
Tel Nos.: (+63 43) 425-0139 local 2121 / 2221
E-mail Address:[Link]@[Link] | Website Address: [Link]
CHAPTER 2 - THE TRANSFER FUNCTION
PRE-LABORATORY SIMULATION (MATLAB OFFLINE)
Procedures:
1. Open the script in MATLAB and locate Part 1. Define the system's numerator and
denominator coefficients by assigning num_array = [10] and den_array = [1, 0].
2. Navigate to Part 2 to construct the mathematical transfer function model. Use the
MATLAB command G_sys = tf(num_array, den_array); to generate the system.
3. Run the script to validate your code and launch the interactive "Advanced Signal
Processing" dashboard.
4. Use the "Interactive System Controls" panel to adjust the sliders for Numerator Gain (K)
and Denominator Pole (p) to dynamically update the transfer function and simulate the
circuit.
Guide Questions:
1. Using the interactive sliders, how does increasing the Denominator Pole (p) value change
the shape and amplitude of the blue "Active Output Y(s)" waveform?
2. Observing the 3D "Active Integrator Circuit" animation, how do the size and color of the
flowing orbs correspond to the changing voltage of the system?
Republic of the Philippines
BATANGAS STATE UNIVERSITY
The National Engineering University
Alangilan Campus
Golden Country Homes, Alangilan Batangas City, Batangas, Philippines 4200
Tel Nos.: (+63 43) 425-0139 local 2121 / 2221
E-mail Address:[Link]@[Link] | Website Address: [Link]
LABORATORY SIMULATION (MATLAB ONLINE)
Procedures:
1. Open the script within your MATLAB Online workspace.
2. Review STEP 1 to observe how polynomial coefficients are defined as 1D arrays
(num_initial = [10]; and den_initial = [1, 2, 5];). Note the use of the tf() command to
combine these arrays into a Control System Toolbox LTI (Linear Time-Invariant) model.
3. Navigate to STEP 2 to examine how modifying the denominator array (den_updated = [1,
8, 5];) is used to mathematically represent a physical change in the system, such as
increased friction.
4. Check STEP 3 to see how adding an element to the numerator array (num_updated = [10,
20];) increases the polynomial order, mathematically representing the addition of a
predictive (derivative) controller zero.
5. Run the script and carefully examine the MATLAB Command Window. Observe how
MATLAB automatically translates your coefficient arrays into a properly formatted
algebraic fractional representation of G(s).
Guide Questions:
1. Based on the array structuring logic demonstrated in STEP 1 and STEP 3, if you needed
2
to model a new system with a numerator equation of 5𝑠 + 3𝑠 + 7, what exact
MATLAB array would you assign to a variable named num_custom?
2. In STEP 2, the denominator array is updated from [1, 2, 5] to [1, 8, 5] to simulate
increased physical friction. Mathematically, which specific power of s in the
characteristic equation (s2, s1, or s0) does that modified middle coefficient correspond to?