Question

In: Mechanical Engineering

Use MATLAB to plot the polynomials y = 3x4 - 6x3 + 8x2 + 4x + 90 and z = 3x3 + 5x2 - 8x + 70 over the interval -3 ≤ x ≤ 3.

Use MATLAB to plot the polynomials y = 3x4 - 6x3 + 8x2 + 4x + 90 and z = 3x3 + 5x2 - 8x + 70 over the interval -3 ≤ x ≤ 3. Properly label the plot and each curve. The variables y and z represent current in milliamperes; the variable x represents voltage in volts.

 

 

Solutions

Expert Solution

MATLAB syntax of the following is as follows:

 

>> a1 = [3,-6,8,4,90];

a2 = [3, 5, -8, 70];

x=[-3:0.01:3];

y = polyval(a1,x);

z = polyval(a2,x);

>> plot(x,y,x,z,\'--\');

>> xlabel(\'Voltage Volts\');

>> ylabel(\'Current milliamps\')

 

MATLAB plot is:


MATLAB syntax of the following is:

 

>> a1 = [3,-6,8,4,90];

a2 = [3, 5, -8, 70];

 

Related Solutions

Use MATLAB to plot the polynomial y = 3x4 - 5x3 - 28x2 - 5x + 200 on the interval $1 ≤ x ≤ 1
Use MATLAB to plot the polynomial y = 3x4 - 5x3 - 28x2 - 5x + 200 on the interval $1 ≤ x ≤ 1. Put a grid on the plot and use the ginput function to determine the coordinates of the peak of the curve.  
Use MATLAB to plot the functions u = 2 log10(60x + 1) and υ = 3 cos(6x) over the interval 0 ≤ x ≤ 2.
Use MATLAB to plot the functions u = 2 log10(60x + 1) and υ = 3 cos(6x) over the interval 0 ≤ x ≤ 2. Properly label the plot and each curve. The variables u and represent speed in miles per hour; the variable x represents distance in miles.
Matlab Consider f(x) = x^3 - x. Plot it. (a) Use Newton's method with p_0 =1.5...
Matlab Consider f(x) = x^3 - x. Plot it. (a) Use Newton's method with p_0 =1.5 to find an approximation to a root with tolerance TOL = 0.01. (b) Use secant method with p_0 = 0.5 , p_1 =1.5, to answer same question as (a). (c) Use Method of False position with initial approximate roots as in (b).
use a matlab built-in function to numerically solve: dy/dx= -x^2+((x^3*e^-y)/4) for 1<=x<=5 with y(1)=1 plot the...
use a matlab built-in function to numerically solve: dy/dx= -x^2+((x^3*e^-y)/4) for 1<=x<=5 with y(1)=1 plot the solution
1A) Use surface integral to evaluate the flux of F(x,y,z) =<x^3,y^3,z^3> across the cylinder x^2+y^2=1, 0<=z<=2...
1A) Use surface integral to evaluate the flux of F(x,y,z) =<x^3,y^3,z^3> across the cylinder x^2+y^2=1, 0<=z<=2 1B) Use the Divergence Theorem to evaluate the flux of F(x,y,z) =<x^3,y^3,z^3> across the cylinder x^2+y^2=1, 0<=z<=2
Plot the function y = 10(1 = e-x/4) over the interval 0 ≤ x ≤ xmax, using a while loop to
Plot the function y = 10(1 = e-x/4) over the interval 0 ≤ x ≤ xmax, using a while loop to determine the value of xmax such that y(xmax) = 9.8.Properly label the plot. The variable y represents force in newtons, and the variable x represents time in seconds.
Use Kramer’s Rule to solve for x, y, and z from the following equations: 4x-7y+2z=4, 3x-11y+5z=3,...
Use Kramer’s Rule to solve for x, y, and z from the following equations: 4x-7y+2z=4, 3x-11y+5z=3, -9x+4y+3z=1. (Hint: Use Determinants)
Use a for loop to plot the function given in Problem 16 over the interval -2 ≤ x ≤ 6. Properly label
Use a for loop to plot the function given in Problem 16 over the interval -2 ≤ x ≤ 6. Properly label the plot. The variable y represents height in kilometers, and the variable x represents time in seconds.
solve by determinants a.x+y+z=0 3x-y+2z=-1 2x+3y+3z=-5 b. x+2z=1 2x-3y=3 y+z=1 c. x+y+z=10 3x-y=0 3y-2z=-3 d. -8x+5z=-19...
solve by determinants a.x+y+z=0 3x-y+2z=-1 2x+3y+3z=-5 b. x+2z=1 2x-3y=3 y+z=1 c. x+y+z=10 3x-y=0 3y-2z=-3 d. -8x+5z=-19 -7x+5y=4 -2y+3z=3 e. -x+2y+z-5=0 3x-y-z+7=0 -2x+4y+2z-10=0 f. 1/x+1/y+1/z=12 4/x-3/y=0 2/y-1/z=3
Computing3√25 using MATLAB. (a) Beginning with the interval [2,3], and f(x) =x^3−25, use the error bound...
Computing3√25 using MATLAB. (a) Beginning with the interval [2,3], and f(x) =x^3−25, use the error bound for bisection to predict how many iterates bisection would need to get error within 10^−20. (b) Run bisection on this problem. How many iterations did it need? For some of the iterates compute the absolute error. What is happening approximately to the number of significant digits of accuracy with each iteration? (c) Write a program to perform Newton’s method on f(x) =x^3−25 with p0=...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT