Question

In: Mechanical Engineering

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.

Solutions

Expert Solution

Write the functions,

u = 2log10(60x + 1)

v = 3cos(6x)

 

The domain of the functions is 0 ≤ x ≤ 2.

 

Two-dimensional line plots can be created using the ‘’plot function’’.

 

Firstly define displacement (x) as a vector, next define the function u and then plot the given function by using plot ().

 

Use hold command to add another plot to an existing figure.

 

Input the following into Matlab:

>> x=0:0.01:2;

u=2^log10(60*x+1);

plot(x,u)

hold on

v=3*cos(6*x);

plot(x,v,’r:’)

ylabel(‘Speed(mi/hr)’), xlabel(‘Distance x (mi)’)

legend(‘u’,’v’)

 

Note: 'r:' string is used for red dotted line.

 

The output of the plots is as shown below:


Write the functions,

u = 2log10(60x + 1)

v = 3cos(6x)

 

The domain of the functions is 0 ≤ x ≤ 2.

Related Solutions

Use MATLAB DSOLVE to solve the folloing ODE and plot it: 300x'' + 60x' + 6840...
Use MATLAB DSOLVE to solve the folloing ODE and plot it: 300x'' + 60x' + 6840 = f(t)
This code is to be written in Matlab. Write a function that will plot cos(x) for...
This code is to be written in Matlab. Write a function that will plot cos(x) for x values ranging from -pi to pi in steps of 0.1, using black *'s. It will do this three times across in one Figure Window, with varying line widths. If no arguments are passed to the function, the line widths will be 1, 2, and 3. If on the other hand, an argument is passed to the function, it is multiplier for these values....
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.  
Use MATLAB to find the 8 point DFT of x(n) = cos(2πmn/8) (m=3) for 0 ≤...
Use MATLAB to find the 8 point DFT of x(n) = cos(2πmn/8) (m=3) for 0 ≤ n ≤ 7. Plot both x(n) and its DFT and explain your results. The "dct" and "fft" functions in MATLAB may be useful. Please post MATLAB code.
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.  
Solve cos^2(x)-cos(x)=0 for x,
Solve cos^2(x)-cos(x)=0 for x,
Consider the function on the interval (0, 2π). f(x) = sin(x)/ 2 + (cos(x))^2 (a) Find...
Consider the function on the interval (0, 2π). f(x) = sin(x)/ 2 + (cos(x))^2 (a) Find the open intervals on which the function is increasing or decreasing. (Enter your answers using interval notation.) increasing decreasing (b) Apply the First Derivative Test to identify the relative extrema. relative maximum (x, y) = relative minimum (x, y) =
1. Solve for the area between x^3 − 6x^2 + 8x − y = 0 and...
1. Solve for the area between x^3 − 6x^2 + 8x − y = 0 and the x − axis. 2. Solve for the area bounded by y^2 + x − 4 = 0 and the y − axis. 3. Solve for the area of the arch of the cycloid x = θ − sinθ, y = 1 − cosθ. 4. Solve for the area bounded by x^2 − 2x − y = 0 and x^2 − 6x + y...
10. For what values of x in the interval [1, 4] does the graph of f(x)=−x^3+6x^2...
10. For what values of x in the interval [1, 4] does the graph of f(x)=−x^3+6x^2 −9x−1 satisfy Rolle’s Theorem? Include a sketch and a brief explanation of what’s going on in this problem. 11. Evaluate each limit. Provide a brief explanation of how you can apply the “top heavy, bottom heavy, it’s a tie” strategy. lim x→∞ 1 / (2x+sinx) 12) Draw   a   diagram   and   solve:   What   is   the   exact   area   of   the   biggest   isosceles   triangle   you   can   inscribe  ...
Solve the Boundary Value Problem, PDE: Utt-a2uxx=0, 0≤x≤1, 0≤t<∞ BCs: u(0,t)=0 u(1,t)=cos(t) u(x,0)=0 ut(x,0)=0
Solve the Boundary Value Problem, PDE: Utt-a2uxx=0, 0≤x≤1, 0≤t<∞ BCs: u(0,t)=0 u(1,t)=cos(t) u(x,0)=0 ut(x,0)=0
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT