i need some help with finding the damping ratio
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
i need to find the damping ratio of the graph (attached 238). the function to do this is given (attached 236)
i am unsure how to do this i have the x and y coordinates for each of the points in the graph
X0 = (0,2)
x1= (12.73,0.77)
x2= (25.36,0.29)
x3=(37.99,0.11)
what would the codebe to find zeta?
0 commentaires
Réponses (1)
Alan Stevens
le 6 Mar 2022
Use fzero:
x = [12.73, 25.36, 37.99];
y = [0.77, 0.29, 0.11]/2;
zeta = fzero(@(zeta) fn(zeta,y),0.5);
disp(['zeta = ' num2str(zeta)])
disp('Compare values:')
for n = 1:3
disp([y(n), exp(-2*pi*n*zeta/(sqrt(1-zeta^2)))])
end
function Z = fn(zeta,y)
Z = 0;
for n = 1:3
Z = Z + log(y(n))-(-2*pi*n*zeta/(sqrt(1-zeta^2)));
end
end
0 commentaires
Voir également
Catégories
En savoir plus sur Assembly dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!