0% found this document useful (0 votes)
124 views2 pages

ENGG3410 Lab 2 Prelab Assignment: Mike Stachowsky and Julie Vale and M. Biglarbegian

This document provides instructions for a prelab assignment involving creating MATLAB and Simulink files. Students are asked to create an m-file to plot various equations and a transfer function for questions 1 and 2. For question 3, students will use Simulink to generate and magnify a sinusoidal signal, and create a transfer function to simulate a step response.

Uploaded by

ali
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
124 views2 pages

ENGG3410 Lab 2 Prelab Assignment: Mike Stachowsky and Julie Vale and M. Biglarbegian

This document provides instructions for a prelab assignment involving creating MATLAB and Simulink files. Students are asked to create an m-file to plot various equations and a transfer function for questions 1 and 2. For question 3, students will use Simulink to generate and magnify a sinusoidal signal, and create a transfer function to simulate a step response.

Uploaded by

ali
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

ENGG3410 Lab 2 Prelab Assignment

Mike Stachowsky and Julie Vale and M. Biglarbegian

In this prelab, you will be creating two .m-files (one for Q1 and one for 2) and one .slx file. These
are the final submission of the prelab.

Open a matlab .m file. Name it with the Single Sign On ID of one of your group members followed
by ` prelab’.

This code will form the basis for your work in the lab, so be sure to ask questions if you are
having trouble. Copy and paste the following code into the beginning of your m-file:

Question 1
a) Plot the equation 𝑦 = 𝑥 2 on figure 16 and turn the grid on.

b) Plot the following two equations in figure 84:

𝑦1 = 𝑥 Plot this in GREEN

y2 = 𝑥 3 + 5𝑥 2 Plot this in RED

c) In figure 1, plot 𝑢 vs. t. 𝑡 should be on the 𝑥 axis and 𝑢 on the 𝑦 axis. Label the axes
appropriately, and scale the 𝑦 axis to (0, 10). Leave the 𝑥 axis unchanged.

Question 2:
Make a transfer function called s3 according to the function below:

a) Plot the Bode diagram of 𝐻(𝑠) on Figure 8

b) Plot the step response of 𝐻(𝑠) on Figure 14

c) Plot the response of 𝐻(𝑠) to the input u with time vector 𝑡 on Figure 9

Question 3:
For this question, you need Simulink. First carefully read the Simulink- tutorial 1 posted on the
Courselink.
a) Generate a sinusoidal signal. Then magnify it by a gain of ‘10’ and plot it using ‘Scope’. Run the
simulations for 3 sec.
1
b) Create a transfer function 𝑠+1. Now generate a ‘step’ input and connect it to the transfer
function. Use ‘Scope’ and run the simulations for 14 sec.

You might also like