GE 152 Matlab Assignment 1 Fall 2022_typo fixed
.pdf
keyboard_arrow_up
School
University of Saskatchewan *
*We aren’t endorsed by this school
Course
152
Subject
Industrial Engineering
Date
Dec 6, 2023
Type
Pages
3
Uploaded by ChiefPower12727
GE 152 - Matlab
Assignment 1
Fall 2022
RLO 1.4 Type B code basic programs in Matlab
Pre-requisite Type A Quiz: Quiz 1
The objective of this Matlab Assignment is to ensure that you are able to code basic
programs in Matlab. More specifically, this assignment focuses on simple linear
programs that involve linear algebra and random numbers. The answer to one of the
following questions will be assessed for RLO 1.4. You will not receive a grade for this
assignment if you didn’t pass
Type A Quiz 1 by the deadline.
Question 1- Linear Algebra (Type B)
Solve the following system of simultaneous equations using linear algebra in Matlab:
You can solve the problem in either the Command Window or the Editor Window and
then take a screenshot showing both the program and the results. You can show the
results in a column vector in the order of a, b, and c.
Question 2
–
Random Numbers (Type B)
In your Math STUs, many questions are parameterized, which means that each time a
student opens a question, the parameters used in that question will be different.
Now you want to use the random number generator in Matlab to generate parameters for
the question: what is the remainder of A divided by B?
A is a random integer number between 100 and 200.
B is a random integer number between 30 and 60.
Please generate 10 sets of parameters and the corresponding results. Then store them in a
single matrix named Question_2 (parameters A in the first column, parameters B in the
second column, and the results in the third column).
To be more specific, you
’
ll need to do the following:
1.
generate a row vector with 10 randomized elements that meet the
requirements for parameter A,
2.
generate a row vector with 10 randomized elements that meet the
requirements for parameter B,
3.
generate a row vector with 10 elements that are the reminders of parameters A
divided by parameters B, and
4.
transpose each row vector into a column vector and append them together
(parameters A in the first column, parameters B in the second column, and the
remainders in the third column).
You can solve the problem in either the Command Window or the Editor Window and
then take a screenshot showing both the process of generating random numbers and the
last matrix.
Submitting Your Work
You will upload your answers to both questions on Crowdmark by 10 PM on Sept 13.
Make sure your screenshots are clear and in the correct order.
Try to fit the program and the output in a single screenshot for each question. Remember
to use semicolons to suppress
unnecessary
output to save space in the Command
Window.
Example solutions will be posted by Wednesday Sept 14.
You will get your graded
Assignment the week of Sept 19.
No late assignments will be accepted for any reason.
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
- Access to all documents
- Unlimited textbook solutions
- 24/7 expert homework help