Code for the plot:
% Code to plot an ellipsoid with given equations and values of a and b
% Where, a = radius along the x axis
% b = radius along the y and z axes
a = 2;
b = 1;
[phi,theta] = ndgrid(linspace(0,2*pi),linspace(0,pi));
x = a*cos(phi).*cos(theta);
y = b*cos(phi).*sin(theta);
z = b*sin(phi);
surf(x,y,z)
________________________________________________________________________________
Screenshot:
*NOTE: Drop a comment for queries.
In MATLAB create a code for An ellipsoid of revolution is the solid analog of a...
Instructions: Show all your work for FULL credit. Calculators are NOL final answer. Neatness is highly appreciated. 1. A region R, bounded by y 2x, y 6-x, and x-axis, is rotated around the y-axis. Sketch the region R, in the box a) 15 strip/slice you will use to find the volume of the solid of revolution. b) Write the definite integral that gives a X the volume of the solid of revolution. (DO NOT evaluate the integral.) Find the circumference...
Use matlab Answer 12-15 Have code to copy FUNCTIONAL DATA Create a vector of x values from 0 to 207 with a spacing of 7/100, where y= x' sin (x) z= x'COS(x) 12. Create an x-y plot of x and y. 13. Create a polar plot of x and y. 14. Create a three-dimensional line plot of x, y, and z. Be sure to add a title and labels 15. Figure out how to adjust your input to plot3 in...
ON MATLAB, CREATE THOSE OUTPUTS WITH DIFFERENT VALUES. BE SURE U HAVE TO CHANGE NUMBERS, COLORS, SHAPES AND LTNE WEIGHTs... AND SHOW YOUR OUTPUT RESULTS AS WELL... the code:: % About Graphs x = 0: pi/40: 4*pi; figure, plot(x, sin(x)) figure, plot([1 1 2 3 3], [0 2 3 2 0]), axis([0 4 0 4]) % for easy plotting: figure, ezplot('tan(x)') % for plotting two graphs on the same axes % it allows to have independent y-axis labels on the...
16pts. Use the Disk Method to find the volume of the solid of revolution bounded by the graphs of y=x+1 1. und 2, and rotated about the x-axis. 87 16 pts] 4. Use the Washer Method to find the volume of a solid of revolution formed by revolving the region bounded above by the graph of y = 2x and below by the graph of y = 2/x over the interval [1, 4) around the x-axis A
***Use MATLAB only*** Show all inputs and outputs Create the shape of an “apple” using a surface plot, utilizing the following equations: x = cos u (4 +5.5 cos v) y = sin u (4 +5.5 cos v) z = (cos v + sin v – 1)(1+ sin vlog (1 + 7.5 sin v 10 Where 0 Sus 21 and - SV ST, use Au = Av =1/32. Title: Apple, X-label: x, Y-label y, Z-label: πν.
how would i do this code in MATLAB Step 2: Coding You are given a vector t. We define x = di cos(it) 16 Yi = 1:1.sin(i-1) for i = 1,2,...,15,16 where multiplication of vectors is assumed to be point-wise. Create a 4x4 subplot. - In the ith location, plot the values of x; versus y; with a solid line (pick a color). - Make the axis tight Run the code a few times before submitting. Note that the size...
Using Matlab; Please show written program to execute and instructions to create plot: 1. Create a vector of x values from 0 to 20 pi, with an increment of pi/100. y=x sin (x) and z= x cos (x) a) create a figure window with two subplots. In first subplot create an x versus y plot and in the second subplot create an y versus z plot. b) create a polar plot of x and y. Add title and labels to...
l. If the curve y = e-2 sin x, x 0 is rotated about the x-axis, the resulting solid looks like an infinite decreasing string of beads. a) Sketch the first few beads of the solid of revolution, marking where the beads intersect the X-axis. b) Find the exact volume of the nth bead. Show all integration steps c) Write the total volume of the beads as an infinite series and evaluate the series l. If the curve y =...
Use MatLAB to create a code to make the picture below. Pici. Radially shrink the graph of x(0) = (ecos(©) – 2 cos(40) + sin(0/12)5) sin(0) y(@) = (ecos(Ⓡ) – 2 cos(48) + sin(0/12)") cos(0) ? for 0 <0 < 27 down to a factor of 0.
Assume that y is a column vector with ten elements, write matlab code that will create a stem plot of the vector starting at a horizontal axis value of 1. Add code that will create the stem plot of the vector starting at a horizontal axis value of 0. Create additional code that creates a stem plot but plots y at every other horizontal value (i.e., 0, 2, 4, etc)