Use MATLab to find the volume of sphere of radius 2m v = 4/3 piR^3 Use MATLab to
ID: 1493937 • Letter: U
Question
Use MATLab to find the volume of sphere of radius 2m v = 4/3 piR^3 Use MATLab to evaluate: A = 5(3/4) + 9/5 and B = 4^3[3/4 + 9/6] Use MATLab to compute x1 and x2: x^2 + 12x - 2 = 0 Find numerical values of x, y and z: x - 2y + z = 12 3x + 4y + 5z = 20 -2x + y + 7z = 11 MATLAB ASSIGNMENT 2 Plot x versus y for y - sin(x). Let x vary from 0 to 2 pi in increments of 0.1 pi. Add a title and labels to your plot. Plot x versus y1(dash dot line) and y2(star marks) for yI=sin(x) and y2m cos(x). Let x vary from zeta to 2pi in increments of theta.1 pi. Add a title and labels to your plot. Note: To submit assignments copy solutions and graphs in Microsoft Word document.Explanation / Answer
1. pi = 3.14
R = 2
V = 4*pi*R*R*R/3
V = 33.4933
2. x = 3/4
y = 9/5
A = 5x + y
A = 5.55
B = 4^3*(3/4 + 9/6)
B = 144
3. p = [1 12 -2]
r = roots(p)
r =
0.16441
-12.16441
4. syms x y z
eqn1 = x - 2y + z == 12;
eqn2 = 3x + 4y + 5z == 20;
eqn3 = -2x + y + 7z == -11;
[A,B] = equationsToMatrix([eqn1, eqn2, eqn3], [x, y, z])
X = linsolve(A,B)
X = 7.6041
-1.770833
0.854166
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.