Given the following MATLAB statements 1 2 3 3 2 1 1 1 2 3 4

Given the following MATLAB statements: [1 2 3; 3 2 1] [1 1 2; 3 4; 5 6] [1 2 1; 2 3 2] [3 4; 2 1] [3 2 -1; -1 3 2; 1 -1 -1] [10; 5; -1] Compute the value of the result for each of the following expressions: A B A C D 2 D 2 Write a MATLAB expression to accomplish the following: Solve the system of equations given by E and R using the Inverse method Solve the system of equations given by E and R using the Left Division method

Solution

>> A = [1 2 3;3 2 1];
>> B = [1 2;3 4;5 6];
>> C = [1 2 1; 2 3 2];
>> D = [3 4; 2 1];
>> E = [3 2 -1;-1 3 2;1 -1 -1];
>> R = [10;5;-1];
>> A*B

ans =

    22    28
    14    20

>> A.*C

ans =

     1     4     3
     6     6     2

>> D^2

ans =

    17    16
     8     9

>> D.^2

ans =

     9    16
     4     1

>> inv(E)*R

ans =

   -2.0000
    5.0000
   -6.0000

>> E\\R

ans =

   -2.0000
    5.0000
   -6.0000

 Given the following MATLAB statements: [1 2 3; 3 2 1] [1 1 2; 3 4; 5 6] [1 2 1; 2 3 2] [3 4; 2 1] [3 2 -1; -1 3 2; 1 -1 -1] [10; 5; -1] Compute the value of th

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site