MATLAB only. Dont change subject, if you dont know leave it
Give me a matlab code which takes input mass , stiffness and damping from user
the code will calculate natural frequency and the damping ratio
use matlab dont give wrong or i will dislike badly
clc;clear all
m=input('Enter the mass: '); %%user enters the mass
k=input('\nEnter the stiffness'); %%user enters stiffness
c=input('\nEnter the damping'); %%user enters damping
omegan=sqrt(k/m) %%computes the natural frequency
zeta=0.5*c/sqrt(k*m) %%computes the damping ratio
Get Answers For Free
Most questions answered within 1 hours.