Major Assignment Group 20 Final
Major Assignment Group 20 Final
Application To
Design Problem
Signal and Systems – ENS3553
Group 20
Date of Submission: 27/10/2024
2. Show that the motion of the system can be described by the following LCCDE:
Accounting for x (position of input body/surface) and y (height of mass above reference level
𝑑2 𝑦 (𝑡) 𝑑2 𝑦(𝑡)
𝐼𝑛𝑒𝑟𝑡𝑖𝑎𝑙 𝐹𝑜𝑟𝑐𝑒: 𝐹𝑖𝑛𝑒𝑟𝑡𝑖𝑎 = 𝑚 ≫ Newton’s 2nd Law (m = mass, = acceleration)
𝑑𝑡2 𝑑𝑡2
𝑑 2 𝑦(𝑡) 𝑐 𝑑𝑦 ( 𝑡) 𝑘 𝑐 𝑑𝑥 (𝑡) 𝑘
2
+ + 𝑦 ( 𝑡) = + 𝑥 (𝑡)
𝑑𝑡 𝑚 𝑑𝑡 𝑚 𝑚 𝑑𝑡 𝑚
3. Use Laplace transform of Equation 1 to find an expression for the system transfer function
H(s)
𝑑 2 𝑦(𝑡) 𝑐 𝑑𝑦 ( 𝑡) 𝑘 𝑐 𝑑𝑥 (𝑡) 𝑘
𝐿𝑎𝑝𝑙𝑎𝑐𝑒 𝑇𝑟𝑎𝑛𝑠𝑓𝑜𝑟𝑚 𝑜𝑓 + + 𝑦 (𝑡) = + 𝑥(𝑡)
𝑑𝑡 2 𝑚 𝑑𝑡 𝑚 𝑚 𝑑𝑡 𝑚
𝑑 2 𝑦(𝑡)
𝐿{ } (𝑠) = 𝑠 2 𝑦 (𝑠) − 𝑠𝑦 ( 0) − 𝑦̇ (0)
𝑑𝑡 2
𝑐 𝑘 𝑐 𝑘
𝑠 2 𝑦( 𝑠) + 𝑠𝑦 (𝑠) + 𝑦 ( 𝑠) = 𝑠𝑥(𝑠) + 𝑥(𝑠)
𝑚 𝑚 𝑚 𝑚
𝑐 𝑘 𝑐 𝑘
𝑦(𝑠) [𝑠 2 + 𝑠+ ] = 𝑥(𝑠) [ 𝑠+ ]
𝑚 𝑚 𝑚 𝑚
𝑐 𝑘
𝑦(𝑠) 𝑠+ ] [
∴ 𝐻 (𝑠) = = 𝑚 𝑚
𝑥(𝑠) [𝑠 2 + 𝑐 𝑠 + 𝑘 ]
𝑚 𝑚
4. From Equation 1 and Equation 2, determine expressions for the damping ratio (ζ) and the
natural frequency (𝝎𝒏 ) in terms of the parameters m, k, and C
𝒅𝟐 𝒚(𝒕) 𝒅𝒚(𝒕)
+ 𝟐𝜻𝝎𝒏 + 𝝎𝒏 𝟐 𝒚(𝒕) = 𝟎
𝒅𝒕𝟐 𝒅𝒕
Equation 2: Homogenous Second Order Differential Equation
𝑐
𝐷𝑎𝑚𝑝𝑖𝑛𝑔 𝑅𝑎𝑡𝑖𝑜 ≫ 2𝜁𝜔𝑛 =
𝑚
𝑐
∴ 𝜁=
2(𝑚)(𝜔𝑛 )
𝑘
𝑁𝑎𝑡𝑢𝑟𝑎𝑙 𝐹𝑟𝑒𝑞𝑢𝑒𝑛𝑐𝑦 ≫ 𝜔𝑛 2 =
𝑚
∴ 𝜔𝑛 = √𝑘⁄𝑚
5. Determine the characteristic equation and eigenvalues for this system based on Equation
2 in terms of 𝝎𝒏 and ζ
𝑑2 𝑦(𝑡) 𝑑𝑦(𝑡)
Characteristic Equation of + 2𝜁𝜔𝑛 + 𝜔𝑛 2 𝑦(𝑡) = 0 is as follows:
𝑑 𝑡2 𝑑𝑡
𝑦 (𝑡) = 𝑒 𝜆𝑡
2𝜁𝜔𝑛 +
−
√(2𝜁𝜔𝑛 ) 2 − 4(1)( 𝜔𝑛 2 )
𝜆=
2 ( 1)
2𝜁𝜔𝑛 +
−
√4𝜁 2 𝜔𝑛 2 − 4𝜔𝑛 2
𝜆=
2
2𝜁𝜔𝑛 +
−
2𝜔𝑛 √𝜁 2 −1
𝜆=
2
+
𝜆 = −𝜁𝜔𝑛 − 𝜔𝑛 √𝜁 2 − 1
+
∴ 𝜆1,2 = −𝜁𝜔𝑛 − 𝜔𝑛 √𝜁 2 − 1
6. Using the answer from part 5, determine the full mathematical expression (in terms of 𝝎𝒏
and ζ) for the natural response of the system for the following cases:
i) 𝜻 = 𝟎
ii) 𝟎 < 𝜻 < 𝟏
iii) 𝜻 = 𝟏
iv) 𝜻 > 𝟏
i) 𝐹𝑜𝑟 𝜁 = 0:
𝑠1,2 = − ( 0)𝜔𝑛 + 2
− 𝜔𝑛 √( 0) − 1
+
𝑠1,2 = − 𝑗𝜔𝑛
∴ 𝑀𝑎𝑡ℎ𝑒𝑚𝑎𝑡𝑖𝑐𝑎𝑙 𝐸𝑥𝑝𝑟𝑒𝑠𝑠𝑖𝑜𝑛 𝑖𝑠: 𝑐 (𝑡) = 𝐴 cos(𝜔𝑛 𝑡 − 𝜙)
iii) 𝐹𝑜𝑟 𝜁 = 1:
𝑠1 ,2 = −(1)𝜔𝑛 + 2
− 𝜔𝑛 √1 − 1
∴ 𝑀𝑎𝑡ℎ𝑒𝑚𝑎𝑡𝑖𝑐𝑎𝑙 𝐸𝑥𝑝𝑟𝑒𝑠𝑠𝑖𝑜𝑛 𝑖𝑠: 𝑐 ( 𝑡) = 𝑎1 𝑒 −𝜔𝑛 𝑡 + 𝑏2 𝑡𝑒 −𝜔𝑛 𝑡
𝑐 (𝑡) = (𝑎1 + 𝑏2 𝑡)𝑒 −𝜔𝑛 𝑡
−𝜔 (−𝜁+√𝜁 2 −1 )𝑡 −𝜔 𝑛 (−𝜁−√𝜁 2 −1 )𝑡
∴ 𝑀𝑎𝑡ℎ𝑒𝑚𝑎𝑡𝑖𝑐𝑎𝑙 𝐸𝑥𝑝𝑟𝑒𝑠𝑠𝑖𝑜𝑛 𝑖𝑠: 𝑐 (𝑡) = 𝑏1 𝑒 𝑛 + 𝑏2 𝑒
7. Determine 𝝎𝒏 (in rad/s) for this system and the corresponding value for 𝒇𝒏 (in Hz):
Determining 𝜔𝑛 in rad/s:
𝑘 𝑘 = 15,000 𝑁 ⁄𝑚
𝜔𝑛 = √ ≫
𝑚 𝑚 = 380 𝑘𝑔
15000
∴ 𝜔𝑛 = √ = 6.28280 ≈ 6.3 𝑟𝑎𝑑 ⁄𝑠
380
Determining 𝑓𝑛 in Hz:
𝜔𝑛 6.28280
𝑓𝑛 = = = 0.99993 ≈ 1.00 𝐻𝑧
2𝜋 2𝜋
𝑐
Substituting 𝜔𝑛 into other equation ≫ 𝜁 =
2 (𝑚) (√𝑘⁄𝑚 )
𝑐
∴1=
2 ( 380) ( √15000⁄380)
∴ 𝑐 = 4774.934555 ≈ 4775
Section 2: System Analysis Using MATLAB
9. Plot the impulse response and step response of the system (for 2 seconds duration and
time ‘step size’ of 1 millisecond)
𝑑 2 𝑦( 𝑡) 𝑐 𝑑𝑦 (𝑡) 𝑘 𝑐 𝑑𝑥 (𝑡) 𝑘
2
+ + 𝑦 ( 𝑡) = + 𝑥 ( 𝑡)
𝑑𝑡 𝑚 𝑑𝑡 𝑚 𝑚 𝑑𝑡 𝑚
Sub in 𝑐 = 4775, 𝑚 = 380 and 𝑘 = 15000:
Take X value at the measured point where Y value is as close as possible to 0.7071 rad/sec.
The corresponding frequency at the -3dB point (when magnitude = 1/√2) is 15.6 rad/second.
12. Discuss the response of the system. Why do the impulse and step responses have that
particular shape? How well will this system fulfil its purpose of a vehicle suspension?
Note: The function of a suspension system is to ‘filter out’ the effect of bumps, potholes and
other such road surface irregularities, but allow the vehicle to ‘follow the road’ as the height of
the road surface varies.
The impulse response represents the system’s behavior to a high energy input signal that
occurs suddenly and briefly, an impulse input. In relation to the design problem, the impulse
input conveys the sudden displacement of the suspension system caused by traveling on
uneven surfaces, such as potholes or speed bumps. In Figure 2, the plot portrays the damping
of the second order system, where, according to the MATLAB code, the system is critically
damped, as the damping coefficient, d, is equal to 1. In a mass- damping system, after the
displacement occurs from the input, the system attempts to return to equilibrium by
dissipating the displacement energy through oscillating. The damper mechanism in the system
controls the oscillations through decreasing their amplitudes over time until steady state is
reached. The damping coefficient, d, determines the rate of oscillations and state of the
system. However, as mentioned earlier, the system is in a critically damped state, where
oscillations do not occur due to displacement energy directly dissipating to the damper
mechanism. This is displayed in figure 2, where the impulse response relatively decreases
linearly, smoothly, towards its steady state, or equilibrium position.
On the other hand, in Figure 3, the system displays effects of a continuous input function, a
step function u(t). The impulse response displayed a rise initially to display the effects of the
input function, going over a bump, without overshooting or oscillating. Subsequently, the
impulse response smoothly decays until leveling off, indicating that steady state have been
retained.
From understanding of the problem, a critical damped system will fulfil the purpose of allowing
the car to follow the road closely due to the lowered probability of the car losing control from
oscillations, as the system both dissipates the displacement’s impulse energy from bumps
and returns the car to equilibrium quickly without oscillating. However, in terms of filtering
effects of uneven surfaces, if the magnitude of the bumps displacement energy is very high,
the lack of oscillations will result in a portion of that energy dissipating to the car’s damping
mechanism, the shock absorbers, while the remaining energy would dissipate through the
car’s body, ultimately affecting the ride quality and, therefore, failing to satisfy the purpose of
filtering the effects of uneven surfaces. Therefore, designing a suspension system with a
damping coefficient close to but not equal to 1 to benefit from both the advantages of
underdamped and critical systems will better fulfill the purpose of the suspension. For further
clarification, an underdamped suspension system will allow the bumps energies to dissipate
through oscillations more efficiently, thus, preserving the ride’s comfort. However, having a
damping coefficient close to 1 will control the rate and magnitude of those oscillations, thus
preserving the car from losing control while traveling over uneven surfaces. Therefore, based
on plots from step 13 and to answer question 14, the damping coefficient of 0.7 is best for
application as a suspension system
1. Repeat the analysis above (steps 9 -11) for the following damping ratios:
Section 3
1. The response of the suspension system designed in Section 2 can be modelled by
providing an input x that resembles the road input (the assumption is that the tyre
assembly does not impact the system response and therefore x is the same as road
‘input signal’ r). The M-file for the custom-written function inputsig has been provided,
with explanatory comments in the file.
Use the inputsig function to generate a sinusoid of 1 Hz with magnitude 0.5 and duration
5seconds, then simulate the suspension system’s response to this function and plot the
input and output response vs time (output plot below input plot for easy comparison).
Hint 4: The system response to an input signal can be simulated using the lsim function.
Following is some sample code that shows how this function could be used.
Note: Students are advised to refer to the help function within Matlab as well as the online
Matlab documentation for more details (10 marks)
Solutions:
The user-defined function inputsig.m is capable of creating sine, square, and pulse waves, as
well as a mixed signal, displayed in the image below.
Used a subplot that demonstrates the three separate signals as well as the combined signal in
a single figure.
Code:
function [xx, tt] = inputsig(duration)
% INPUTSIG Function to generate periodic input signal
% that is a combination of 3 different signals
% default - sin, square and pulse combination
% [xx,tt] = inputsig(duration)
% duration = duration of signal waveform in seconds
%
% Users can change the amplitude and frequency of each signal
% By changing the constants at the start
% Timestep = time between samples
% The 3 frequency and 3 magnitude values
% Note: Individual signal types can be changed - 'sin', 'square' or 'pulse'
if (nargin < 1)
duration = 1; % gives 1 second length signal by default
end
timestep = 1e-5; % default time step 1e-5, change as required
This function suffers from memory issues because of a very large timestamp value.
Thus, we have revised the function to generate a sine wave which is utilized to give input to the
system. This is how it functions.
Code:
function [xx, tt] = inputsig(duration, sig_type, freq, mag)
% INPUTSIG Function to generate a specific type of periodic input signal
% [xx, tt] = inputsig(duration, sig_type, freq, mag)
% - duration: duration of the signal in seconds
% - sig_type: type of signal (‘sin’)
% - freq: frequency of the signal in Hz (default = 1 Hz)
% - mag: magnitude of the signal (default = 1)
if nargin < 1
duration = 1; % Default duration of 1 second
end
if nargin < 2
sig_type = 'sin'; % Default signal type is sine
end
if nargin < 3
freq = 1; % Default frequency of 1 Hz
end
if nargin < 4
mag = 1; % Default magnitude of 1
end
timestep = 1e-3; % Set a reasonable timestep to reduce memory usage
tt = 0:timestep:duration; % Time vector
The lsim function is applied to determine the LTI system's output in response to a sinusoidal
input at 1 Hz, 0.5 amplitude, and 5 seconds duration.
Note: The transfer function coefficients are Num: 1 and Den: 2, 3.
Code:
% Generate the input signal (1 Hz sinusoid with magnitude 0.5, duration 5 seconds)
[xx, tt] = inputsig(5, 'sin', 1, 0.5);
Output display:
.
2.For a given periodic signal y(t) = cos (Pi t) with fundamental period T0 = 2 sec.
a) Will the expanded signal y(t/2) be periodic? If periodic indicate its period.
c) Use Matlab to plot the above two signals and verify your results. Present the matlab
t=0:0.01:10;
y=cos(pi*(t/2));
z=cos(pi*2*t);
subplot(1,2,1);
plot(t,y);
xlabel('time');
ylabel('y(t/2)')
subplot(1,2,2);
plot(t,z);
xlabel('time');
ylabel('y(t*2)')
A = 2.5; % amplitude
axis([0 50 -2 2]);
grid;
d) Type in this code and run it. What type of signal is obtained?
→ 50
→ 2 sec
h) Modify the code so that it generates a sinusoid with length 100, frequency 0.8 × 2 π radians
per sample, amplitude 5.5, and a phase offset of π/2 radians. Run the modified code to
generate and plot another discrete-time sinusoid. All matlab codes should be presented
in the answer.
(1+1+1+1+6 marks)
Solution:
A = 2.5; % amplitude
grid;
part h
A = 5.5; % amplitude
grid;
Question 4.
a. Use Matlab to generate and plot the discrete-time signal x[n] = cos(0.09n) for 0 ≤ n ≤ 120.
For your plot, turn the grid on and scale the axes using the Matlab statements
grid;
Solution:
A = 1; % amplitude
grid;
Question 5
stem(n, delta_n);
axis([-10 10 0 1.5]);
ylabel(’\delta[n]’);
a) Type in this code and run it. What type of signal is obtained?
When entering and running the code in the MATLAB command window, we obtain a unit sample signal.
A unit sample signal is defined as a signal with an amplitude of 1 at n=0. Mathematically, it is expressed
as:
δ(n)={1, n=0
0, if n ≠0 }
b) Modify the code above to generate and plot δ[n − 3] for −10 ≤ n ≤ 10.
→ To plot δ(n−3), the impulse with an amplitude of 1 should occur at n=+3. δ(n−3) represents a
time-shifted version of δ(n), meaning it is delayed by 3 units. In MATLAB, the impulse can be
shifted to n=3 by using the following code:
c) Use the Matlab functions ones and zeros to generate and plot the signal u[n] for −10 ≤ n≤ 10.
u(n) is a discrete-time unit step function, defined mathematically as:
u(n) = { 1 n≥0
0, for n<0 }
By running the code below we can generate a unit step function for -10 ≤ n ≤ 10 :
un = [zeros(1,10), ones(1,11)]; % 10 zeroes for -10 to -1 and 11 zeros from n=0 to n=10
This signal is a time-reversed (flipped) and shifted version of the discrete-time unit step signal.so to
generate this signal,
Code: