hwo can i write this by matlab code

if i have a matrix 15*15
which gave me info about the distance between all AP (access point)
I need to make 5 groups each group consists of 3 AP where AP not repeated in each group depend on the largest distance between every access point
any support please to write it by natlab code
Thanks all

댓글 수: 4

Image Analyst
Image Analyst 2019년 2월 3일
What is AP? Distance from what?
Are you using pdist2() from the Statistics and Machine Learning Toolbox?
sara alaraby
sara alaraby 2019년 2월 3일
Dear:AP meaning the access point
If i have matrix 15*15 this matrix define the distance between each AP
I need to create 5 groups each group consists of 3 AP where the AP not repeated
depend on the largest distance between AP in each group
Image Analyst
Image Analyst 2019년 2월 3일
편집: Image Analyst 2019년 2월 3일
Do you have the coordinates of each point? If so, did you try pdist2() like I suggested? This will get the distance of every point to every other point.
Once you have the distances, you can pass them into kmeans() to cluster them into three groups.
sara alaraby
sara alaraby 2019년 2월 4일
Dear;
I alreaddy get the distance between each AP
then i save the result in matrix 15*15
----------------------------------------
i need to start from AP no 1 then choose 2 AP which are fartest from it , in case of we select AP (5,10)
the second step we will start from AP 2 then chosse 2 AP with it and so son,
where AP not repeated
(need to make 5 group each group consists of 3 AP)
can you support to write like this

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

질문:

2019년 2월 3일

댓글:

2019년 2월 4일

Community Treasure Hunt

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

Start Hunting!

Translated by