In the blank lines provided below insert the appropriate com
In the blank lines provided below, insert the appropriate command(s) needed to complete the figure. Generate a possible script file using appropriate sequence of cylinder, surf, title etc commands to develop a MATLAB script that will generate the 3-d graphics image shown of a cone of height 8 and a starting radius of 1. b)What does \'a\' and \'b\' stand for in the command view(a, b). What will be the view () commands to obtain the top view and front view of the cylinder. Show rough sketches of the graphic figures you will obtain by executing the commands.
Solution
We want to generate surface in the above figure using approprite MATLAB commands.
>>X1=linespace(0,4,25); (This was given)
>>Y1=linespace(0,3,25); (This was given)
>>[X,Y], meshgrid (x,y);
>>Z=X.^2+Y.^2
>>Surf(X,Y,Z)
