Plot and calculate Damping ratio

49 views (last 30 days)
Dai Nguyen
Dai Nguyen on 23 Feb 2021
Commented: Star Strider on 23 Feb 2021
Hi I want to calculate damping ratio by using the log decrement method, but for my understanding we need to select 2 peaks in order to do it. Can matlab do it by itself ?or I have to do it manually. Here is what I got so far.
[v,T,vT]=xlsread('Velocity_Response_of_Pendulum.xlsx')
Time=v(:,1);
Veloc=v(:,2);
xlabel('Time');
ylabel('Velocity');
plot(Time,Veloc);
%pick the first peak (t,v) (0.372,0.02884)
%pick the 2nd peak (1.826, 0.02883)
damp_ratio=

Answers (1)

Star Strider
Star Strider on 23 Feb 2021
The findpeaks or islocalmax functions can return the information to do the calculations.
  7 Comments
Star Strider
Star Strider on 23 Feb 2021
My pleasure!
If my Answer helped you solve your problem, please Accept it!
.

Sign in to comment.

Categories

Find more on Programming in Help Center and File Exchange

Products


Release

R2020a

Community Treasure Hunt

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

Start Hunting!