Computers and Technology

[MATLAB] Manipulate a matrix G =
[1 2 1 0 0 0 0
3 4 0 1 0 0 0
1 0 1 2 1 3 1
0 1 2 7 -1 2 1]
Manipulate a matrix: Do the following operations on matrix G created above in Problem 6.
(a) Extract the rst 3X3 submatrix from G and store it in the matrix H, that is, create a matrix
H =
[1 2 1
3 4 0
1 0 1]
by extracting the appropriate rows and columns from the matrix G.
(b) Create the matrix E obtained from H by replacing Hsub22 = 4 by 7. Do not enter E explicitly.
Hint: enter rst E=H; to create copy of the matrix H and then manipulate the matrix E. The
resulting matrix should be
E =
[1 2 1
3 7 0
1 0 1]
(c) Create the matrix F obtained by deleting the third column of the matrix H. Do not enter F
explicitly.
(d) What happens if you type G(:,:) and hit return? Do not include the output in your lab
report, but include a statement describing the output in words.
What happens if you type G(:) and hit return? Do not include the output in your lab report,
but include a statement describing the output in words.
(e) What happens if you type G(5,2) and hit return? Explain.
(f) What happens if you type max(G)? Explain. What happens if you type sum(G)? Explain.
(g) What happens if you type G(G>3) and hit return? Can you explain how MATLAB got that
answer? What happens if you type G(G>3) = 100 and hit return? Can you explain how
MATLAB got that answer?

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 20:10, ianmartin6080
Assume that minutes is an int variable whose value is 0 or positive. write an expression whose value is "undercooked" or "soft-boiled" or "medium-boiled" or "hard-boiled" or "overcooked" based on the value of minutes. in particular: if the value of minutes is less than 2 the expression's value is "undercooked"; 2-4 would be a "soft-boiled", 5-7 would be "medium-boiled", 8-11 would be "hard-boiled" and 12 or more would be a "overcooked".
Answers: 1
image
Computers and Technology, 23.06.2019 06:30, wwesuplexcity28
To become an audio technician, the most successful tactics might include the following. (select all that apply). learning how to persuade other people gaining different types of experience in audio technology learning as much as possible about art history establishing a reputation as a reliable professional
Answers: 1
image
Computers and Technology, 23.06.2019 12:00, anamatiascamaja
If you embed a word table into powerpoint, what happens when you make edits to the embedded data? a. edits made to embedded data change the data in the source file; however, edits made to the source file will not be reflected in the embedded data. b. edits made to embedded data will change the data in the source file, and edits made to the source file will be reflected in the embedded data. c. edits made to embedded data don't change the data in the source file, nor will edits made to the source file be reflected in the embedded data. d. edits made to embedded data don't change the data in the source file; however, edits made to the source file will be reflected in the embedded data.
Answers: 1
image
Computers and Technology, 23.06.2019 13:30, carolelai08
Stops: using the information learned in this course, explain three things you will not do when driving. a. b. c. explain why you will not do these things when driving. starts: using the information learned in this course, explain three things you will do when driving. a. b. c. explain why you will do these particular things when driving. explain one thing you will stop doing as a passenger. explain one thing you will start doing as a passenger.
Answers: 3
Do you know the correct answer?
[MATLAB] Manipulate a matrix G =
[1 2 1 0 0 0 0
3 4 0 1 0 0 0
1 0 1 2 1 3 1
...

Questions in other subjects:

Konu
Mathematics, 22.03.2021 18:50
Konu
Chemistry, 22.03.2021 18:50