How to find the coordinates of starting, end point and peak from graph?

12 次查看(过去 30 天)
How to find the peak value, end point and distance between starting and end point?
x = linespace(-5,5); y = sqrt((36-x.^2)/9); figure() plot (x,y)

采纳的回答

Star Strider
Star Strider 2019-8-2
Try this:
x = linspace(-5,5);
y = sqrt((36-x.^2)/9);
figure()
plot (x,y)
[onePeak,loc] = max(y) % Peak Value & Index
endPoint = y(end) % End Point Value
se_dist = max(x) - min(x) % Start To End Distance
producing:
onePeak =
1.9999
loc =
50
endPoint =
1.1055
se_dist =
10
  11 个评论

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Interactive Control and Callbacks 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by