Question

How is Problem 1 (a through e) typed up in Matlab? I would like to know how the commands is typed up along with solution please.

Assignment 6 Problem 1) Consider the two following matrix, 1 4 2 2 4 100 and B In(A) 7 9 7 3 42 a) Select just the second row of B. b) Evaluate the sum of the second row of B. c) Multiply the second column of B and the first column of A element by element. d) Evaluate the maximum value in the vector resulting from element by element multiplication of the second column of B with the first column of A. e) Use element by element division to divide the first row of A by the first three elements of the third column of B. Evaluate the sum of the elements of the resulting vector.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

a)

code:

A=[1,4,2;2,4,100;7,9,7;3,pi,42];
B=log(A)
B(2,:)

codingground ExECUTE MATLABIOCTA VE ON LINE New Project 20170224 +Execute Share Code demo.m x root 1 A-[1,4,2;2,4,10e;7,9,7;3

b)

code:

A=[1,4,2;2,4,100;7,9,7;3,pi,42];
B=log(A)
sum(B(2,:))

codingground ExECUTE MATLA BIOCTAVE ON LINE *New Project-201 70224 囧다+《 :q, Execute!! > Share Code demo.mx root 1 A-1,4,2;2,4

c)

code

A=[1,4,2;2,4,100;7,9,7;3,pi,42];
B=log(A)
B(:,2).*A(:,1)

codingground ExECUTE MATLABIOC TA VE ONLIN E * New Project-20170224 + « q, Execute l > Share Code demo.m x ト[1,4, 2; 2, 4, 10

d)

code

A=[1,4,2;2,4,100;7,9,7;3,pi,42];
B=log(A)
max(B(:,2).*A(:,1))

codingground ExECUTE MATLA BIOCTAVE ONLIN E * New Project-20170224囧ㅁ + « 웜 Execute l > Share Code demo.m x h= [1,4,2,2,4, 100

Add a comment
Know the answer?
Add Answer to:
How is Problem 1 (a through e) typed up in Matlab? I would like to know...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT