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

4 vues (au cours des 30 derniers jours)
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).

Réponse acceptée

Walter Roberson
Walter Roberson le 12 Jan 2019
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.

Plus de réponses (1)

madhan ravi
madhan ravi le 12 Jan 2019
p_when_x_is_114=interp1(x,p,114)

Catégories

En savoir plus sur Graph and Network Algorithms dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by