logo Hurry, Grab up to 30% discount on the entire course
Order Now logo

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Sandhya SharmaBusiness
(5/5)

619 Answers

Hire Me
expert
Sikhar AggarwalMathematics
(5/5)

997 Answers

Hire Me
expert
Anthony BidiniBusiness
(5/5)

896 Answers

Hire Me
expert
Siddharth GuptaStatistics
(/5)

831 Answers

Hire Me
MATLAB
(5/5)

In Matlab, define the matrix A and vector b, such that Ax = b. Copy/paste the Matlab code and output for A and b to your document.

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

Create a word document or similar. Copy/paste the relevant code and output from the Matlab command window to the document. Please ensure each question is labelled, i.e. Question 1, Question 2, etc.

 

Once you have finished the assignment, save your document as a PDF file. Ap- pend all figures to this file and upload to iLearn.   Google ‘merge pdf’ to find online sources that merge multiple PDF files.

 

1. [5 marks] Consider the system of linear equations

 

x1 + x2 − 3x3 − 2x4 + 2x5 = 1,

−x1 + 2x3 + x4 = 1, x1 + 2x2 − x3 − x4 + 2x5 = 4,

−2x1 − 2x2 + 15x3 + 9x4 − 9x5 = −1, x1 − x2 + 2x3 − 2x4 − 3x5 = −1

for the unknown vector x = (x1, x2, x3, x4, x5)T .

(a) In Matlab, define the matrix A and vector b, such that Ax = b. Copy/paste the Matlab code and output for A and b to your document.

(b) Using the command rref determine the solution to the homogeneous system Ax = 0. Copy/paste the Matlab code and output to your document and state the solution to the homogeneous system.

(c) Using the command  A b determine the solution  to the inhomogeneous  system

Ax = b. Copy/paste the Matlab code and output to your document.

 

 

 

2. [6 marks] Consider the line given by the vector equation

 1   2 

r =  3  + t −1 for t ∈ R,

and the plane given by the Cartesian equation

 

3x − y + 5z = 7.

(a) By hand (i.e., the method presented in lectures), determine the value of t and the corresponding point (a, b, c) at which the the line intersects the plane. Add the values for t and (a, b, c) to your document.

(b) In Matlab define [x,y]=meshgrid(0:4) and using mesh(x,y,z, ‘linestyle’, ‘none’,  ‘facecolor’,  ‘red’) plot the plane. Type hold on.

(c) In Matlab define t = linspace(-2,2). Using the plot3() command, plot the line in the same figure as the plane. Add the parametric equations of the line to your document.

(d) In the same figure, plot the point of intersection (a, b, c) of the line and plane; use the command

plot3(a,b,c,‘ko’,‘markersize’,20, ‘MarkerFaceColor’,‘k’).

(e) Add an appropriate title, and x, y, z-labels to your figure and save as a PDF.

Attach the figure to the main document, using the online merge packages.

3. [4 marks] Consider the functions

f (x) = √9 − x and g(x) = x2.

(a) Determine the domain of the composite function (f ◦ g)(x). In Matlab, define the domain of f ◦ g using the linspace command, and define the composite function f ◦ g. Copy/paste the code to your document.

(b) Plot the composite function using the plot() command.

(c) Add an appropriate title, and x, y-labels to your figure and save as a PDF. Attach the figure to the main document, using the online merge packages

 

(5/5)
Attachments:

Related Questions

. The fundamental operations of create, read, update, and delete (CRUD) in either Python or Java

CS 340 Milestone One Guidelines and Rubric  Overview: For this assignment, you will implement the fundamental operations of create, read, update,

. Develop a program to emulate a purchase transaction at a retail store. This  program will have two classes, a LineItem class and a Transaction class

Retail Transaction Programming Project  Project Requirements:  Develop a program to emulate a purchase transaction at a retail store. This

. The following program contains five errors. Identify the errors and fix them

7COM1028   Secure Systems Programming   Referral Coursework: Secure

. Accepts the following from a user: Item Name Item Quantity Item Price Allows the user to create a file to store the sales receipt contents

Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip

. The final project will encompass developing a web service using a software stack and implementing an industry-standard interface. Regardless of whether you choose to pursue application development goals as a pure developer or as a software engineer

CS 340 Final Project Guidelines and Rubric  Overview The final project will encompass developing a web service using a software stack and impleme