subject

[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?

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 17:30
The forerunner to cell phones, pdas, and smartphones was
Answers: 1
question
Computers and Technology, 22.06.2019 21:30
After you clean an engine with hot water spray, it seems to stall; when it doesn't stall, it's idling noisily. technician a says to check for loose bolts on the flex plate near the torque converter. technician b says to wipe down the spark plug wires and the distributor cap. who is correct? a. technician a b. both technicians a and b c. technician b
Answers: 1
question
Computers and Technology, 23.06.2019 18:20
What is wi-fi infrastructure? a metropolitan area network that uses radio signals to transmit and receive data a communications technology aimed at providing high-speed wireless data over metropolitan area networks a means by which portable devices can connect wirelessly to a local area network, using access points that send and receive data via radio waves includes the inner workings of a wi-fi service or utility, including the signal transmitters, towers, or poles and additional equipment required to send out a wi-fi signal
Answers: 2
question
Computers and Technology, 24.06.2019 09:50
Suppose you are an ad-serving company and you maintain a log of cookie data for ads you serve to the web pages for a particular vendor (say amazon). a. how can you use this data to determine which are the best ads? b. how can you use this data to determine which are the best ad formats? c. how could you records of past ads and ad clicks to determine which ads to send to a given ip address? d. how could you use this data to determine how well the technique you used in your answer to part c was working? e. how could you use this data to determine that a given ip address is used by more than one person? f. how does having this data give you a competitive advantage vis-à-vis other ad-serving companies?
Answers: 2
You know the right 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
question
English, 17.07.2020 20:01
question
Mathematics, 17.07.2020 20:01
Questions on the website: 13722367