How to find maximum amplitude of a vibration plot?

19 ビュー (過去 30 日間)
Gyandeep Borgohain
Gyandeep Borgohain 2022 年 1 月 8 日
編集済み: DGM 2022 年 1 月 8 日
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 Center および File ExchangeAcoustics, 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