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

C Help Solve And if Possibl x D Microsoft word MAE x C a Microsoft Word-MAE215Su

ID: 1843576 • Letter: C

Question

C Help Solve And if Possibl x D Microsoft word MAE x C a Microsoft Word-MAE215SummberB2016HW3.docx Ask me anything 1. 10 pts Revisiting MATLAB matrices and built-in functions. a Factor the following polymomials using MATLAB: i. x2 18x 81 ii. x 11x 24 10x 9 iv. x3 4x2 x 16 v. 2x2 16x 40 b) Multiply the following vectors using "dot" multiplication. What does this type of operation do in contrast to traditional matrix multiplication? i. 5,6,9)' with [10,10,10 ii. 1,1,11 with 12,5,1 4 5 with B 9 10 0 2 2. [30 pts] Plotting in MATLAB. a) Consider the following function: (x) x 6 Create vectors from -10 to 10 with the following step-sizes: 0.1 iv. 0.001. v. 0.00001 plot the results on the same graph. Add axis labels, title and legend. b Create multiple figures, plotting all data from part (a)- Create new titles, as necessary. Change the line styles to the following: i. red, black, green, cyan, magenta grid on ii. black diamonds, red circles, blue s,dashed magenta, dotted green grid off iii, black asterisks, red squares, dotted red, blue dashes, magenta squares grid On MAE 215: Introduction to Programming in MATLAB 9:58 PM

Explanation / Answer

1.

clc
clear all
%factorization%
syms x
F = factor(x^2 +18*x +81)
G = factor(x^2 +11*x +24)
H = factor(x^2 -10*x +9)
I = factor(x^3-4*x^2+4*x-16)
J = factor(2*x^2-16*x - 40)


% dot product%
A =[5 6 9]'
B =[10 10 10]'
C = dot (A,B)

D =[1 1 1]'
E=[2 5 1]'
F= dot(D,E)

G =[1 3 ;9 10]
H= [4 5 ; 10 2]
I=dot(G,H)

ans :

F =

[ x + 9, x + 9]


G =

[ x + 8, x + 3]


H =

[ x - 1, x - 9]


I =

[ x - 4, x^2 + 4]


J =

[ 2, x + 2, x - 10]

A =

5
6
9


B =

10
10
10


C =

200


D =

1
1
1


E =

2
5
1


F =

8


G =

1 3
9 10


H =

4 5
10 2


I =

94 35