i need some help with finding the damping ratio

6 次查看(过去 30 天)
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?

回答(1 个)

Alan Stevens
Alan Stevens 2022-3-6
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)])
zeta = 0.1517
disp('Compare values:')
Compare values:
for n = 1:3
disp([y(n), exp(-2*pi*n*zeta/(sqrt(1-zeta^2)))])
end
0.3850 0.3812 0.1450 0.1453 0.0550 0.0554
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

类别

Help CenterFile Exchange 中查找有关 Assembly 的更多信息

产品


版本

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by