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

조회 수: 4 (최근 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