Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Part 1 Exercises 1 A ) Open a new script ( top left button in Home menu ) and type your name and student ID

Part 1 Exercises
1A) Open a new script (top left button in Home menu) and type your name and student ID number as comments in the top two lines of the script, as designated below. Comments in MATLAB start with a percent sign, MATLAB won't read anything after them, and these will be displayed as green text.
% First Name Last Name
% Student ID Number
For the remainder of this project, a = last digit of your student ID, b =
second to last digit of your student ID, c = third to last digit of your student
ID, and d = the sum of the last three digits of your student ID. Complete
the following operations in your script, making a new line for each operation.
1B) P1B =
1C) PIC =
1D) P1D =
Once you have these operations written in proper MATLAB syntax, go to your Editor menu and click Run. If there are values in your Command Window for all operations without error messages, then your code has successfully run! If you have error messages, read them carefully and try to
resolve them, then click Run again.
Part 2 Exercises
Recall that a = last digit of your student ID, b = second to last digit of your
student ID, c = third to last digit of your student ID, and d = the sum of the
last three digits of your student ID. Complete the following operations in your script, making a new line for each operation.
2A) Define the matrices M1, M2, M3, and M4 in different lines in your script so that they output the following matrices below (the semicolons are important; include them!). You will be using these to answer the questions that follow them.
2B) P2B =81M2-4M2
2C) P2C =-3M4+732
2D) P2D =(SM2M3)(M13)% matrix multiply in parentheses, elementwise
multiply between parentheses
2E) P2E =(6M4M3)/(M33)% matrix multiply in first parentheses,
elementwise otherwise
Part 3 Exercises
Recall that a = last digit of your student ID, b = second to last digit of your
student ID, c = third to last digit of your student ID, and d = the sum of the
last three digits of your student ID. Complete the following operations in your script, making new lines for each operation.
3)(Solve system of linear equations, Method 1) Solve the above system of linear equations using reduced row echelon form. In other words, declare a 2x3 coefficient matrix called P3AM for the system above (make a matrix with just numbers, no variables), then use the reduced row echelon form command to solve the system. Declare the solution in MATLAB as
.
3B)(Solve system of linear equations, Method 2) Solve the same system of linear equations using an inverse matrix. In other words, declare a 2\times 2 coefficient matrix called P3BM for the same system (make a matrix with just numbers, no variables, but only for the side with the x and y on it), then declare a 2x1 vector called P3BV with the numbers on the right side of the
equation. If we let X =[r ; y], then the system turns into (P3BM)(X)=
(P3BV); therefore, the solution to the system should be X =(P3BM)'(P3BV). Use the proper inverse matrix operation and declare the solution in MATLAB as P3B. Check that your results match the prior method from 3A.
3C)(Dot Product - MAT 264) Declare P3C1 as a 1x2 row vector with a+1 and b+1 as the two entries. Declare P3C2 as another 1x2 row vector with c+1 and d+1 as the two entries. Compute the dot product of these vectors by multiplying the two vectors together, but transpose P3C2 before they are multiplied. Declare your product in MATLAB as P3C.
3D)(Eigenvalues - MAT 364, Method 1) You are to solve for the eigenvalues of a 2x2 system of differential equations, given as
where X =[x; y]. Declare the coefficient matrix above P3DM in
MATLAB. You are going to find the eigenvalues of this matrix by appropriately mimicking the lines of code below in MATLAB, but by using relevant information and following proper syntax rules. Note that syms allows you to define a variable in MATLAB symbolically. This command will be used regularly in future projects.
syms z
_= solve( z^2-( trace (___))z +det(___)==0,Z)
3E)(Eigenvalues - MAT 364, Method 2) You are to find the eigenvalues of the same 2x2 system of differential equations as written above. Declare the coefficient matrix as P3EM in MATLAB. You will use the eigenvalue command from the list on the previous page to identify the eigenvalues of this system. Declare your result in MATLAB as P3E. Check that your
results match the prior method from 3D.Form any student name and an 8 digit student id number for this project

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database And Transaction Processing

Authors: Philip M. Lewis, Arthur Bernstein, Michael Kifer

1st Edition

0201708728, 978-0201708721

More Books

Students also viewed these Databases questions

Question

Define KNN.

Answered: 1 week ago