Question: i need help with these! i know how to define the matrix/ variable, i just need help with the solving! help with all of these


Define the vector v = [2 3 4 5 6). Then use the vector in a mathematical expression to create the following vectors: (a) a = [4 6 8 10 12] (b) b = [8 27 64 125 216] (c) c = [22 37 44 55 69) (d) d = [1 1.5 2 2.5 3] Script G 1 % Define v 2 v=[2:61 3 % Type in the code for a below 4 a=2*(v) 5 % Type in the code for b below 6 b=(v).^3 7 % Type in the code for c below 8 cu 9 % Type in the code for d below 10 The dot product can be used for determining the angle between two vectors: r. O = cos- Use MATLAB's built-in functions acosd, sart, and dot to find the angle (in degrees) between r = 6i - 3j+2k and r2 = 21+ 9j+ 10k Recall that r = Vr.r. Script 1 % Define ri and r2 2 31% Type in the code for theta below Solve the following system of three linear equations: -4x + 3y +-18.2 5x + 6y = 2x = -48 8 2x - 5y +4.5: 92.5 Use A for the coefficient matrix; B for the boundary condition vector, and X for the unknowns x, y, and z. Script e Reset MATLAB 1 Define a matrix A 2 3 % Define a vector B 4 5 $ Type in the code for X 6 7 Type in the code that assigns the values for x, y, and z from X below
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
