Locate the centroid z of the frustum of the right-circular cone.
BE 1500 – Fall 2016 HW 5 Due: October 13, 2016 (1:30 P.M.) 1. Write a code for repmat; the only built-in commands you are allowed to use are input, size, and disp. A=input('matrix '); [m,n]=size(A); z=input('replicated rows '); y=input('replicated columns '); for i=1:m for j=1:n B(i:m:z*m,j:n:y*n)=A(i,j); end end disp(B) 4 points 1 point for comments 1 point for setting up outermost loop (1:m) 1 point for setting up innermost loop (1:n) 1 point for correct answer There are other ways to do this code other than what was given; check to see their correct answers. Take off 1 point per bui