Filter löschen
Filter löschen

How many times does a number appear in these lines?

2 Ansichten (letzte 30 Tage)
Marco Camozzi
Marco Camozzi am 7 Apr. 2020
Bearbeitet: Marco Camozzi am 7 Apr. 2020
Hi
someone could help me find a function that checks in loop if an i and j number of each line appears in the other lines more than 2 times?
%Connecting points i --> j: Edge(k,:) = [i, j];
Edge = [1 2;
2 3;
3 4;
2 6;
3 7;
5 6;
6 7;
7 8];
i corresponds to the left number an j to the right one.
Thank you!

Akzeptierte Antwort

KSSV
KSSV am 7 Apr. 2020
Read about unique. This should help you to get what you want.
  3 Kommentare
KSSV
KSSV am 7 Apr. 2020
You got the solution? You have accepted answer?
Marco Camozzi
Marco Camozzi am 7 Apr. 2020
Bearbeitet: Marco Camozzi am 7 Apr. 2020
yea I accepted, I still have no solution at the moment.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Loops and Conditional Statements finden Sie in Help Center und File Exchange

Produkte


Version

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by