Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Can you write matlabcode about vibration mechanicsm viscously damped sDOF system

ID: 1766769 • Letter: C

Question

Can you write matlabcode about vibration mechanicsm viscously damped sDOF systems ,free vibration.I need a comparison for undamped system ,overdamped system, critically damped system.Can you compare zeta situations while you are using f loop.X v c m k values wanted from users.Damped ratio need to calculated with c k m values. And The codes give me as a result which system.(undamped,overdamped,critically damped)
This picture is example of format Can you write matlabcode about vibration mechanicsm viscously damped sDOF systems ,free vibration.I need a comparison for undamped system ,overdamped system, critically damped system.Can you compare zeta situations while you are using f loop.X v c m k values wanted from users.Damped ratio need to calculated with c k m values. And The codes give me as a result which system.(undamped,overdamped,critically damped)
This picture is example of format This picture is example of format ue dnte (14.os/ rn e vistion) Responue -Plst respomde Velwit ,t

Explanation / Answer

matlab code

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

C=input('enter the value of damping coefficient,c');

k=input('enter value of spring rate,k');

m=input('enter the value of mass,m');

Cc=2*sqrt(k*m);%%%%%%%%%critical damping coefficient

zeta=C/Cc;%%%%%damping ratio

if zeta==0

disp('it is undamped system');

else if (zeta>=0)&&(zeta<1)

disp('it is underdamped system');

else if zeta==1

disp('it is critically damed system');

else if zeta>1

disp('it is overdamped system');

end

end

end

end

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

sample output

enter the value of damping coefficient,c100

enter value of spring rate,k1000

enter the value of mass,m10

it is underdamped system

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote