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

NAME: ES2513 Circle Lab Day: Thurs, Fri Show work for credit and simplify all re

ID: 3705101 • Letter: N

Question

NAME: ES2513 Circle Lab Day: Thurs, Fri Show work for credit and simplify all results: L (5pts)!tmyvect be defined as follows: mrvect- [ ?: p1/10 2.pi j ; a (1 pts) vL= length(mrvect );Then ? is. b. (2 pt) resultect (3) : Then result is c. (2 pt) Fill in the blank so nenect s identical to my Vect: 2*pi, )s newect linspace( 2 (1 pt) Let xi a. Undefined b. 28 c I6. 12, 10 J d. none of the above (4 pts) Assume there is a Matlab function named frustumVolume. The volume of a frustum is calculated using the function as follows: 3. volume - frustumVolume( radiusHajor, radiusMinor, height) The frustumVolume function can be used to compute the volume of a cylinder if the major and minor radii are equal. Show how to use the frustumVolume function to compute the cylinder volume given the cylinder has dimensions: radius 4 and height 8. cylindervol (Continued on the back)

Explanation / Answer

1)
myVect = [0 : pi/10 : 2*pi]

a)

vl=length(myVect);

vl= 21

b)
result=myVect(3)

result=0.62832

c)
newVect=linspace(0,2*pi,21)


2)
x1.*y1 = [6 12 10]

3)

cylinderVol = frustumVolume(4,4,8);

4)
function perimeter = perimeterRect(length,height)
perimeter = 2*(length+height)
end


NOTE:- change the name of input arguements because length is also a function name in matlab.So,it will cause problem