Question

The question is for MATlab for an ENG 1007 class Write a function ?????????(?, ?, ?,...

The question is for MATlab for an ENG 1007 class

Write a function ?????????(?, ?, ?, ?_1 , ?_1 ,?) that

a. Calculate the natural frequency of the system, ?_n = (k/m)^.5.

b. Calculate the critical damping coefficient, C_c = 2??_n.

c. If c =0, then use Undamped () to calculate values of x.

d. If c >C_c, then use Overdamped () to calculate values of x.  A_1 = (-c/2*m)+((((c/2*m)^2) - (k/m))^.5) and  A_2 = (-c/2*m) - ((((c/2*m)^2) - (k/m))^.5).

e. If c =C_c, then use CriticallyDamped () to calculate values of x.

f. If c < C_c then use Underdamped () to calculate values of x.

g. Output x

0 0
Add a comment Improve this question Transcribed image text
Answer #1

`Hey,

Note: Brother in case of any queries, just comment in box I would be very happy to assist all your queries

Note: Brother since the function underdamped critically damped are not given. So, please add it before running. In case of any queries comment.

function Vibration(k,m,c,x_1,v_1,t)
w_n=sqrt(k/m);
C_c=2*m*w_n;
if(c==0)
x=Undamped();
elseif(c>C_c)
A_1 = (-c/2*m)+((c/2*m)^2);
A_2 = (-c/2*m) - ((((c/2*m)^2) - (k/m))^.5);
x=Overdamped();
elseif(c==C_c)
x=CriticallyDamped();
elseif(c<C_c)
x=Underdamped();
end
end

Kindly revert for any queries

Thanks.

Add a comment
Know the answer?
Add Answer to:
The question is for MATlab for an ENG 1007 class Write a function ?????????(?, ?, ?,...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Characteristic equation

    The voltage ?1 (?) in a network is defined by the equation ? 2?1 (?) /?? 2 + 4 ??1 (?) /?? + 5?1 (?) = 0 (a) Write down the characteristic equation of the network(b) Determine the network’s natural frequencies s1 and s2.(c) If the network is overdamped, or critically damped state the values of the damping term, , and the undamped natural frequency, ?0 If the network is underdamped, state the values of the damping term, , and the...

  • Answer last four questions 1. A spring-mass-damper system has mass of 150 kg, stiffness of 1500...

    Answer last four questions 1. A spring-mass-damper system has mass of 150 kg, stiffness of 1500 N/m and damping coefficient of 200 kg/s. i) Calculate the undamped natural frequency ii) Calculate the damping ratio iii) Calculate the damped natural frequency iv) Is the system overdamped, underdamped or critically damped? v) Does the solution oscillate? The system above is given an initial velocity of 10 mm/s and an initial displacement of -5 mm. vi) Calculate the form of the response and...

  • HZ A mass of 0.4 kg is suspended from a spring of stiffness 0.4 N/mm. The...

    HZ A mass of 0.4 kg is suspended from a spring of stiffness 0.4 N/mm. The damping is 3.794733192 kg/s What is the undamped natural frequency of the system in Hz? f= Your answer should be accurate to within +/-0.1. What is the value of the critical damping coefficient? Сст в kg/s Your answer should be accurate to within +/-0.1. What is the value of the damping ratio? Your answer should be accurate to within +/-0.01. Is the system: (a)...

  • 3. Write a program called VibratingSystem that does the following a. Takes the following as input...

    This two problems go together 3. Write a program called VibratingSystem that does the following a. Takes the following as input i. Spring constant, k; ii. Mass under vibration, m; iii. Coefficient of viscous damping, c, iv. Initial position of the mass. xi, v. And initial velocity of the mass. vi b. If the values k or m are less than or equal to zero, ask for those variables again. c. Plot the results for t from 0 to 20...

  • 2 with spring stiffness k 1000 N/m, Consider a mass-spring-damper system shown in Figure mass m...

    2 with spring stiffness k 1000 N/m, Consider a mass-spring-damper system shown in Figure mass m = 10 kg, and damping constant c-150 N-s/m. If the initial displacement is xo-o and the initial velocity is 10 m/s (1) Find the damping ratio. (2) Is the system underdamped or overdamped? Why? (3) Calculate the damped natural frequency (4) Determine the free vibration response of the system.

  • This two problems go together 3. Write a program called VibratingSystem that does the following a....

    This two problems go together 3. Write a program called VibratingSystem that does the following a. Takes the following as input i. Spring constant, k; ii. Mass under vibration, m; iii. Coefficient of viscous damping, c, iv. Initial position of the mass. xi, v. And initial velocity of the mass. vi b. If the values k or m are less than or equal to zero, ask for those variables again. c. Plot the results for t from 0 to 20...

  • Solve it with matlab 25.16 The motion of a damped spring-mass system (Fig. P25.16) is described...

    Solve it with matlab 25.16 The motion of a damped spring-mass system (Fig. P25.16) is described by the following ordinary differential equation: d’x dx ++ kx = 0 m dr dt where x = displacement from equilibrium position (m), t = time (s), m 20-kg mass, and c = the damping coefficient (N · s/m). The damping coefficient c takes on three values of 5 (under- damped), 40 (critically damped), and 200 (overdamped). The spring constant k = 20 N/m....

  • 1) Answer the following questions for harmonic oscillator with the given parameters and initial c...

    1) Answer the following questions for harmonic oscillator with the given parameters and initial conditions Find the specific solution without converting to a linear system Convert to a linear system Find the eigenvalues and eigenvectors of the corresponding linear system Classify the oscillator (underdamped, overdamped, critically damped, undamped) (use technology to) Sketch the direction field and phase portrait Sketch the x(t)- and v(t)-graphs of the solution a. b. c. d. e. f. A) mass m-2, spring constant k 1, damping...

  • I want matlab code. 585 i1 FIGURE P22.15 22.15 The motion of a damped spring-mass system (Fig. P22.15) is de...

    I want matlab code. 585 i1 FIGURE P22.15 22.15 The motion of a damped spring-mass system (Fig. P22.15) is described by the following ordinary differ- ential equation: dx dx in dt2 dt where x displacement from equilibrium position (m), t time (s), m 20-kg mass, and c the damping coefficient (N s/m). The damping coefficient c takes on three values of 5 (underdamped), 40 (critically damped), and 200 (over- damped). The spring constant k-20 N/m. The initial ve- locity is...

  • Model for Evaluation The model used for evaluation is the single degree of freedom lumped mass mo...

    Model for Evaluation The model used for evaluation is the single degree of freedom lumped mass model defined by second order differential equation with constant coefficients. This model is shown in Figure 1. x(t)m m f(t) Figure 1 - Single Degree of Freedom Model The equation of motion describing this system can easily be shown to be md-x + cdx + kx = f(t) dt dt where m is the mass, c is the damping and k is the stiffness...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT