How to find maximum amplitude of a vibration plot?

15 visualizzazioni (ultimi 30 giorni)
How do i find the maximum amplitude (Y value) and corresponding x-value for such plots?

Risposta accettata

DGM
DGM il 8 Gen 2022
Modificato: DGM il 8 Gen 2022
Something like
% example data
x = linspace(0,2*pi,100);
y = sin(x);
[maxy idx] = max(y); % find maximal y-value
maxx = x(idx); % find corresponding x-value
[maxx maxy] % location of maximal point in the set
ans = 1×2
1.5867 0.9999
plot(x,y); hold on
plot(maxx,maxy,'o')

Più risposte (0)

Categorie

Scopri di più su Acoustics, Noise and Vibration in Help Center e File Exchange

Prodotti


Release

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by