Question

Need help with this MatLab exercise. Please show all commands in MatLab.

Enter the following matrices and vectors in MATLAB [ 2 -6 3 ] [ 5 ] -3 A= 2 -7 -2 , B= 2 -2 -3 , b= -13 , c= 3 -1 4], d= 0 [

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

Command Window A=[-5 -2 -4;2 -7 -2;7 -2 7] A = -5 -2 -4 7 -2 >> B=[2 -6 3;2 -2 -3;1 -8 -1] 2 -3 -2 -8 >> b=[5;-13;10] >> c=[33 -1 4 >> d=(-3;0;-3] ans NO 66 18 -94 >> BA to 32 -35 -28 con 16 fx >> c*Aans 11 -7 18 >> B*d ans = -15 ) 0 >> C=[A:B] C = ๐ : : : : : ń w won >> D=[B d]܀ ܀ ܀ ܂ 3 ܀ ܘ ܀>> X-A\b -5.6099 -1.6241 6.5745 >> A (2,1) =0 A = - - - ->> 8-A (2,:) 0 -7 -2 >> B(:, 1) =] * * * f& >>

Add a comment
Know the answer?
Add Answer to:
Need help with this MatLab exercise. Please show all commands in MatLab. Enter the following matrices...
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
  • on matlab (1) Matrices are entered row-wise. Row commas. Enter 1 2 3 (2) Element A,...

    on matlab (1) Matrices are entered row-wise. Row commas. Enter 1 2 3 (2) Element A, of matrix A is accesser (3) Correcting an entry is easy to (4) Any submatrix of Ais obtained by d row wise. Rows are separated by semicolons and columns are separated by spaces ner A l 23:45 6. B and hit the return/enter kry matrix A is accessed as A Enter and hit the returnerter key an entry is easy through indesine Enter 19...

  • Need help!! 1) Let A, B, C, and D be the matrices defined below. Compute the...

    Need help!! 1) Let A, B, C, and D be the matrices defined below. Compute the matrix expressions when they are defined; if an expression is undefined, explain why. [2 0-1] [7 -5 A= .B -5 -4 1 C- ,D= (-5 3] [I -3 a) AB b) CD c) DB d) 3C-D e) A+ 2B 2) Let A and B be the matrices defined below. 4 -2 3) A=-3 0, B= 3 5 a) Compute AB using the definition of...

  • Matlab answer only Form 1 6) [10 pts] Consider the following two matrices B=[S A 3...

    Matlab answer only Form 1 6) [10 pts] Consider the following two matrices B=[S A 3 1 5 -7 4 6-3] a) Obtain the sum of each row of matrix A. b) Use the size function to create a magic matrix P which has the same size as matrix A. c) Create a matrix called Q from the second column of matrix A d) Extract the four numbers in the lower left-hand corner of matrix A and create matrix R....

  • How is Problem 1 (a through e) typed up in Matlab? I would like to know...

    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...

  • cope the code please thanks Write a MATLAB code to obtain the following. Keep your code...

    cope the code please thanks Write a MATLAB code to obtain the following. Keep your code commented whenever required. Copy your source code and command widow outcomes and screen shots of any plots in your solution. Generate a matrix "A" as follow. A= 16 6 8 2 10 18 12 14 4 I. II. Divide the matrix A by 2 and store the result in a matrix B. Combine matrices A & B to obtain the following matrix C. Also...

  • UOR 8ver the commands and examples in the Matlab Overview documents available on Blackboard Matla...

    number 2 using mathlab UOR 8ver the commands and examples in the Matlab Overview documents available on Blackboard Matlab folder, and then complete the assignment. You should turn in your entire command window text format, please) cither printed or by email. I need to be able to see both your com Use Matlab to perform as many calculations as possible, including determining whether an operation Make your calculations as efficient as possible. Look for ways to avoid entering Matlab results...

  • Please help me out with this assignment. Please read the requirements carefully. And in the main...

    Please help me out with this assignment. Please read the requirements carefully. And in the main function please cout the matrix done by different operations! Thanks a lot! For this homework exercise you will be exploring the implementation of matrix multiplication using C++ There are third party libraries that provide matrix multiplication, but for this homework you will be implementing your own class object and overloading some C+ operators to achieve matrix multiplication. 1. 10pts] Create a custom class called...

  • Question 1 a. Define the following matrices in a script file (M-file), ? = ( 8...

    Question 1 a. Define the following matrices in a script file (M-file), ? = ( 8 9 10 11; 23 9 16 15 ;11 12 3 6; 1 2 8 9 ) ? = ( 2 21 7 15; 12 4 8 22; 23 9 5 13; 23 4 21 22) ℎ = (4 9 12 15) b. Add suitable lines of codes to the M-file to do the following. Each of the following points should be coded in only...

  • 2. Matrix A = Matrix B = log(A) Write MATLAB expressions to do the following. Evaluate...

    2. Matrix A = Matrix B = log(A) Write MATLAB expressions to do the following. Evaluate the sum of the first row of B Evaluate the maximum value in the vector resulting from element-by-element multiplication of the first column of B with the third column of A. Use element-by-element division to divide the third row of A by the first three elements of the second column of B and evaluate the sum of the elements of the resulting vector.

  • Need Help on Matlab matrix system. Have your code return the solution x and show this...

    Need Help on Matlab matrix system. Have your code return the solution x and show this solution in a command prompt printout. Note that you can, of course, check your answer easily with the Matlab backslash command, A\b. Naive LU Decomposition Now, starting with your functioning Gauss Elimination code, modify it to keep the factors in the same matrix that it is passed. You of course will not modify the b-vector. Have this code return the L and U matrices...

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