How to find maximum amplitude of a vibration plot?

38 次查看(过去 30 天)
How do i find the maximum amplitude (Y value) and corresponding x-value for such plots?

采纳的回答

DGM
DGM 2022-1-8
编辑:DGM 2022-1-8
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')

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Acoustics, Noise and Vibration 的更多信息

产品


版本

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by