ENGR 328 Computational Methods in Engineering HW

Anonymous

Question Description

hi

how are you

homework by MATLAB CODE

if you need anything just text me

thanks

Unformatted Attachment Preview

Purchase answer to see full attachment

Super_Teach12
School: Duke University

Hi, here is your assignment :) Together with the m files :)

ENGR 328 Homework 5
1. A number of matrices are defined as:

%
%
%
%
%

Answer the following questions regarding these matrices:
(a) What are the dimensions of the matrices?
(b) Identify the square matrices, column vectors, and row vectors.
(c) What are the values of the elements: a12, b23, d32, e22, f12, g12?
(d) Perform the following operations:

A. Code:
(a) What are the dimensions of the matrices?
A = [4 7; 1 2; 5 6]
[m,n] = size(A)
Output:

B. Code:
%B. Identify the square matrices, column vectors, and row
vectors.
%
Square matrix are those with equal number of rows and
columns
%
Below is code for checking square matrix A = [4 7; 1 2; 5 6]
[m,n] = size(A)
if m == n
disp('A is square matrix');
else
disp('A is not a square matrix');
end
B = [4 3 7; 1 2 7; 2 0 4]
[m,n] = size(B)
if m==n
disp('B is square matrix');
else
disp('B is not square matrix');
end
Output:

C. Code:
% c) What are the values of the elements: a12, b23, d32, e22,
f12, g12?
A = [4 7; 1 2; 5 6]
[m,n] = size(A)
A(1,2)
B=[4 3 7;1 2 7;2 0 4]
B(2,3)
D=[9 4 3 -6;2 -1 7 5]
D(3,2)
Output:

D. Code:

Output:
B=
4

3

7

1

2

7

2

0

4

9

4

3

-6

2

-1

7

5

1

5

8

7

2

3

4

0

6

C=
3
6
1
D=

E=

ans =
5

8 15

8

...

flag Report DMCA
Review

Anonymous
The tutor managed to follow the requirements for my assignment and helped me understand the concepts on it.

Anonymous
The tutor was knowledgeable, will be using the service again.

Anonymous
Awesome quality of the tutor. They were helpful and accommodating given my needs.

Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4

Brown University

1271 Tutors

California Institute of Technology

2131 Tutors

Carnegie Mellon University

982 Tutors

Columbia University

1256 Tutors

Dartmouth University

2113 Tutors

Emory University

2279 Tutors

Harvard University

599 Tutors

Massachusetts Institute of Technology

2319 Tutors

New York University

1645 Tutors

Notre Dam University

1911 Tutors

Oklahoma University

2122 Tutors

Pennsylvania State University

932 Tutors

Princeton University

1211 Tutors

Stanford University

983 Tutors

University of California

1282 Tutors

Oxford University

123 Tutors

Yale University

2325 Tutors