MATLAB easy 5 questions

User Generated

ffee7755

Humanities

Description

SOLVE them with a separate PDF & WORD documents with their codes written in the document

For every problem, provide

 The MATLAB script files/Command window screenshots that solve the problems.

 Final answers. Run the prepared script file in the MATLAB command window in order to obtain the answers.

for this time>>Please note that all problems in this HW must be solve by hand, without MATLAB!, so attached ur answer via a picture into the PDF & WORD documents

plz finish it ASAP

Unformatted Attachment Preview

For every problem, perform all calculations by hand. Provide all details of calculations in the report. Problem 1: Find matrix product AB for 1 —4 2 a) A = [ ], 2 —1 7 2 B = [—1 b) A = [—2 —3 1/2], 2 —1 0 —2] . 4 —2 2 —1 —3 B= [ 2 0 4 ]. —2 —5 3 —2 —3 c) A = [ 2 0 4 ] , B = [—31 ] —2 —5 3 2 2 —24 —3 1 0 0 d) A = [0 1 0] , B = [ 7 0 8 ]. 0 0 1 —2 —15 3 Problem 2: Find the transpose of the following matrices 2 a) A = [ 2 —2 2 b) B = [—1 4 —1 —3 0 4] —5 3 0 —2] —2 Problem 3: Consider a system of linear equations x3 + 2x2 = 5 2x2 + 2x3 — x1 = 0 2x2 + 5x1 = 2 1. Find the matrix of coefficients A of this system and vector of right hand sides B and write this system in the matrix form. 2. Find solution of this system using the Gauss elimination. Problem 4: Find the solution of the system of linear equations AX = B by the Gauss elimination: 1. Find the matrix of coefficients and vector of left hand sides after the forward sweep. 2. Find the solution of the system. 1 —1 2 4 0 —1], A=[ 1 3 —2 0 —1 5 0 —4 0 2 —2 B = [ 1 ]. 1 0 Problem 5: Consider the matrices 1 1 1 A = [1 —3 0 ], 2 2 —2 1. 2. 3. 4. 5. 1 3 B = [0 2 ], 2 —1 0 C = [2]. 1 Calculate AB. Calculate BT. Calculate AC. Calculate BTA. Solve the SLE AX = C by hand using Gauss elimination technique.
Purchase answer to see full attachment
User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.

Explanation & Answer

HiIt is the hand solution please check the gauss elimination as the solution in the class

It is matlab code

Solution of Problem (1)
a) Script Code:
a=[1 -4 2; 2 -1 7];
b=[2 0;-1 -2 ; 4 -2];
c=a*b
Answer
c=
14

4

33 -12
************************************

b) Script Code:
a=[-2 -3 0.5];
b=[2 -1 -3;2 0 4 ;-2 -5 3];
c=a*b
Answer
c=
-11.0000 -0.5000 -4.5000
************************************

c) Script Code:
a=[2 -1 -3;2 0 4 ;-2 -5 3];
b=[-2 -3 0.5];
c=a*b
Answer
Error using *
Inner matrix dimensions must agree.

d) Script Code:
a=[1 0 0;0 1 0 ;0 0 1];
b=[2 -24 -3; 7 0 8; -2 -15 3];
c=a*b

Answer
c=
2 -24 -3
7

0

-2 -15

8
3

-----------------------------------------------------------------------------------------------------------------

Solut...


Anonymous
Awesome! Made my life easier.

Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4

Related Tags