What is Mathmatical Formula to find the specified values (marked in circle) on below graph.

3 次查看(过去 30 天)
question.png
  • p(i, j) is a matrix of this graph
Graph Description:
  1. Where p(1, 114) is values of p(i, j).
  2. Blue chart bars shows matrix values of p(i, j).

采纳的回答

Walter Roberson
Walter Roberson 2019-1-12
mask = p(1,:) > min(p(1,:));
starts = strfind(mask, [1 0]);
stops = strfind(mask, [0 1]) + 1;
Now you want starts(1) and stops(1) as those positions.

更多回答(1 个)

madhan ravi
madhan ravi 2019-1-12
p_when_x_is_114=interp1(x,p,114)

类别

Help CenterFile Exchange 中查找有关 Graph and Network Algorithms 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by