Question

In: Mechanical Engineering

Use the Saturation block to create a Simulink model to plot the solution of the following equation for 0 ≤ t ≤ 6.

Use the Saturation block to create a Simulink model to plot the solution of the following equation for 0 ≤ t ≤ 6.

Solutions

Expert Solution

Type simulink in MATLAB command window or click the simulink icon on the toolbar to launch simulink.

Click on the new model icon or press ctrl+N to create the new model. The simulink model is shown in Figure 1.

Procedure to make the simulink model,

• From the simulink library, select a Sine wave block, a saturation block, a Subtract block, a Gain block, an Integrator block, and a To workspace block.

• Connect these blocks and assign their values by double-clicking them using Figure 1.

• Double-click the Sine wave block and enter the value of amplitude as 10 and frequency as 3.

• Double-click the saturation block and enter the value of upper limit as 8 and lower limit as –8.

• Double-click the Gain for ydot block and enter the value of gain as 1/3.

• Double-click the Integrator for y(0) block and enter the initial condition as 2.

• Rename each block according to convenience.

• Double-click the To workspace block and change the save format to array.

• Run the simulink model for 6 seconds and switch to command windows.

• Type the following command in MATLAB command window:

plot(tout,simout),xlabel('t'),ylabel('x')

• Press enter. The output plot is shown in Figure 2.

 

Thus, the simulink model to plot the equation t versus x is modeled and the output is shown in Figure 2 for 6 seconds.


Thus, the simulink model to plot the equation t versus x is modeled and the output is shown in Figure 2 for 6 seconds.

Related Solutions

Use the Transfer Function block to construct a Simulink model to plot the solution of the following equation for 0 ≤ t ≤ 4. 2x + 12x + 10x = 5us(t) - 5us(t −2) x(0) = x(0) = 0
Use the Transfer Function block to construct a Simulink model to plot the solution of the following equation for 0 ≤ t ≤ 4.2x + 12x + 10x = 5us(t) - 5us(t −2) x(0) = x(0) = 0
   Create a simulink model of the nonlinear equation (1) and obtain a plot from 0...
   Create a simulink model of the nonlinear equation (1) and obtain a plot from 0 to 3 seconds of the pendulum problem. Be sure to include a scope box so the displacement plot can be viewed. d2q/dt2 + (g/L)*sinq = 0 q = angle of displacement of the pendulum [rad] g = gravitational constant 9.81 [m/sec2 ] L = pendulum length [m]       The sinq term introduces the nonlinearity. This makes the solution difficult. To simplify the problem,       equation...
Plot the solution of the equation 6ẏ + y = f(t) if f (t) = 0 for t + 0 and f(t) = 15 f
Plot the solution of the equation6ẏ + y = f(t) if f (t) = 0 for t + 0 and f(t) = 15 for t ≥ 0. The initial condition is y(0) = 7.
Find the general solution of the differential equation y′′+9y=13sec2(3t), 0<t<π/6. Use C1, C2,... for the constants...
Find the general solution of the differential equation y′′+9y=13sec2(3t), 0<t<π/6. Use C1, C2,... for the constants of integration. Enter an exact answer. Enter ln|a| as ln(|a|), and do not simplify. y(t)=
Find the solution to the heat equation on 0 < x < l, with u(0, t)...
Find the solution to the heat equation on 0 < x < l, with u(0, t) = 0, ux(l, t) = 0, and u(x, 0) = phi(x). This is sometimes called a "mixed" boundary condition.
Find the general solution of the equation: y^(6)+y''' = t
Find the general solution of the equation: y^(6)+y''' = t
SUBJECT: CONTROL SYSTEM DESIGN (Simulink Model) • What does the ‘Bias’ block do to the input...
SUBJECT: CONTROL SYSTEM DESIGN (Simulink Model) • What does the ‘Bias’ block do to the input sine wave? Describe it. • What is a ‘Subsystem’ and why is it useful when developing a model? • What does the ‘Gain’ block do? What does a gain value of 255/5 mean? • What does the '1023' value do in the Arduino I/O subsystem? • What does the gain value of ‘5/1023’? What is its relationship to an 8-bit digital wave? PLEASE TYPE...
Create a scatter plot. What does it indicate? What is the regression equation? Is the equation...
Create a scatter plot. What does it indicate? What is the regression equation? Is the equation significant? How do you know? What is the estimate for Period 13? What is the r2 and what does it signify? Period Sales 1 12 2 13 3 12 4 14 5 13 6 15 7 16 8 14 9 17 10 15 11 17 12 18
MATLAB based problem: Create a motoring model for the engine with the following specifications, and plot...
MATLAB based problem: Create a motoring model for the engine with the following specifications, and plot the in-cylinder pressure against (i) cylinder volume and (ii) crank angle degrees (20 points)  Bore = 107mm, stroke = 124mm, compression ratio = 17.3, Length of connecting rod = 192mm. Assume the ratio of specific heats is 1.4 (constant), atmospheric pressure is 1 bar and ambient temperature is 298 K.
Consider the following model: C=20+0.5(Y-T) I=20-10r T=0 G=50 QUESTIONS: a) Obtain the equation of the IS...
Consider the following model: C=20+0.5(Y-T) I=20-10r T=0 G=50 QUESTIONS: a) Obtain the equation of the IS curve. What is the slope of the curve? Calculate output if r=0.1 b) Suppose now that autonomous consumption increases to 30. What happens to the IS curve? Show your results in a graph. c) Suppose now that there is a change in marginal propensity to consumption so that now c1=0.6. What happens to the IS curve? Show your results in a graph.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT