Question: LAB SECTION: WW4P3 (25 points) Element by Element Operations: Write a MATLAB script file HW4P3 to do the following problems: (12 pts) Define the vectors
LAB SECTION: WW4P3 (25 points) Element by Element Operations: Write a MATLAB script file HW4P3 to do the following problems: (12 pts) Define the vectors U 1-5 -4 -3 -21.V - 15 4 3 21 operator. Then using only the vectors and/or V. in elementwise operacion create the following vectors: (a) A = [0000] (b) B = [(-5) (-4)*(-3) (-2) (C)C= (d) D = (-1-1-1-1] (e) E = F = (20 1262] li (4 pts) Using the linspace function, createx - (0.5, 1, 1.5, 2, 2.51 and y = [0.8, 1.6, 2.4, 3.2, 4), then use them in the following expression to calculate z using elementwise calculations. iii. z = xyey/x - Vx+y)+ 8.5 (9 pts) The radius, r, of a sphere can be calculated from its volume, V, by: The surface area of a sphere, S, is given by: S = 42 Determine the radius and surface area of spheres with volumes of 4,000, 3,500, 3,000, 2,500, 2,000,1,500 and 1,000 in. You must initialize the vector V for the volume using short cut expressions, DO NOT enter the values explicitly. Your script must display the results in a three column matrix where the values of r, V, and Sare displayed in the first second, and third columns, respectively. The values of rands that are displayed in the matrix should be rounded to the nearest tenth of an inch. EAS 230 - Spring 2020 - HW04
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
