Finding minimum value from a graph

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일

0 개 추천

[y_min,i_min] = min(dataset3)
x_min = time_ms(i_min)

카테고리

도움말 센터File Exchange에서 Scatter Plots에 대해 자세히 알아보기

제품

릴리스

R2022a

질문:

2022년 8월 23일

답변:

2022년 8월 23일

Community Treasure Hunt

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

Start Hunting!

Translated by