Finding minimum value from a graph

7 ビュー (過去 30 日間)
Mari Phillips
Mari Phillips 2022 年 8 月 23 日
回答済み: Torsten 2022 年 8 月 23 日
I have plotted a graph using the code below.
This produces a varied scatter graph. How would I find the minumum y value and then in turn find the corresponding x value to this?
dataset3 = FullData(1:100:end)';
plot(time_ms,dataset3);
xlabel('Time(ms)');
ylabel('Displacement (mm)');
title('Results: 10V');
grid on

回答 (1 件)

Torsten
Torsten 2022 年 8 月 23 日
[y_min,i_min] = min(dataset3)
x_min = time_ms(i_min)

カテゴリ

Help Center および File ExchangeScatter Plots についてさらに検索

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by