Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Given: v = [4 -2 -1 5 0 1 -3 8 2] and w = [0 2 1 -1 0 -2 4 3 2]. Evaluate the fo

ID: 1996547 • Letter: G

Question

Given: v = [4 -2 -1 5 0 1 -3 8 2] and w = [0 2 1 -1 0 -2 4 3 2]. Evaluate the following expressions using MATLAB. Check the answers without using MATLAB. a. v>=w b. w!=w Create the following three matrices: A = [5 1 6 2 7 -10 4 -3 0] B = [11 0 2 5 -12 6 -3 4 1] C = [7 10 8 14 3 -5 1 -2 9] a. Calculate A + B and B + A to show that addition of matrices is commutative. b. Calculate 5(A+C) and 5A + 5C to show that, when matrices are multiplied by a scalar, the multiplication is distributive. Solve the following in MATLAB t = (2 + 7)^3 + 273^2/3/2 + 55^2/3

Explanation / Answer

v=[4 -2 -1 5 0 1 -3 8 2];
w=[0 2 1 -1 0 -2 4 3 2];
v>=w
w~=w

Command Window:

>> compare_sine_sine_discreet

ans =

1 0 0 1 1 1 0 1 1


ans =

0 0 0 0 0 0 0 0 0

>>

clc;
A=[5 2 4;1 7 -3;6 -10 0]
B=[11 5 -3;0 -12 4;2 6 1]
C=[7 14 1;10 3 -2;8 -5 9]
A+B
B+A


A =

5 2 4
1 7 -3
6 -10 0


B =

11 5 -3
0 -12 4
2 6 1


C =

7 14 1
10 3 -2
8 -5 9


ans =

16 7 1
1 -5 1
8 -4 1


ans =

16 7 1
1 -5 1
8 -4 1

>>

Since both A+B and B+A are equal, addition is commutative.

clc;
A=[5 2 4;1 7 -3;6 -10 0]
B=[11 5 -3;0 -12 4;2 6 1]
C=[7 14 1;10 3 -2;8 -5 9]
5.*(A+C)
5.*A+5.*C

Command windoow:


A =

5 2 4
1 7 -3
6 -10 0


B =

11 5 -3
0 -12 4
2 6 1


C =

7 14 1
10 3 -2
8 -5 9


ans =

60 80 25
55 50 -25
70 -75 45


ans =

60 80 25
55 50 -25
70 -75 45

>>

So multiplication is distributive

clc;
syms t;
solve('t==(9*9*9)+((273^(2/3))/2)+((55*55)/3)')

command window:


ans =

273^(2/3)/2 + 5212/3

>> vpa(ans)

ans =

1758.374917600348279670515318388

>>

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote