Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

HW3P4 (18 points) Element by Element Operations: i. (6 pts) Define the vector V-[5 4 3 2] using the . operator. Then use the vector

image text in transcribed

HW3P4 (18 points) Element by Element Operations: i. (6 pts) Define the vector V-[5 4 3 2] using the "." operator. Then use the vector V in a MATLAB expression to create the following vectors: 5 4 3 2 (b) [55 44 33 22] (a) [25 16 9 4] Hint: Use element by element operations. ii. (2 pts) Definex - [0.5,1, 1.5, 2, 2.5] andy - [0.8, 1.6, 2.4, 3.2, 4] using the linspace function, then use them in the following expression to calculate z using element-by- element calculations. Hint: Use the; operator to create x andy. iii. (10 pts) The radius, r, of a sphere can be calculated from its volume, V, by: 3 3 V The surface area of a sphere, S, is given by: S- 4Ttri2 Write a script HW3P4.m to 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 in3. 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 ofr, V, and S are displayed in the first, second, and third columns, respectively. The values of ir and S that are displayed in the matrix should be rounded to the nearest tenth of an inch

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

SQL Server Query Performance Tuning

Authors: Sajal Dam, Grant Fritchey

4th Edition

1430267429, 9781430267423

More Books

Students also viewed these Databases questions