How many times does a number appear in these lines?

2 次查看(过去 30 天)
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!

采纳的回答

KSSV
KSSV 2020-4-7
Read about unique. This should help you to get what you want.
  3 个评论
Marco Camozzi
Marco Camozzi 2020-4-7
编辑:Marco Camozzi 2020-4-7
yea I accepted, I still have no solution at the moment.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Loops and Conditional Statements 的更多信息

产品


版本

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by