how can i draw line between three points connected with the closest another three points

for example :
1) I have three mobiles MS1,MS2 and MS3
2) I have three classes of base station class_A ,class_B and Class_C and each class of base station has two base station ex: class_A(1) and class_A(2) class_B(1) and class_B(2) and class_C(1) and class_C(2)
3) These mobiles and several class of base station are distributed randomly.
the goal is: to connect with line the three mobiles with the closest BS of the three class_A,class_B and class_C making (counter) for each class class_A=2 and (counter) of each base station ex class_A(1)=2 connections with MS1 And MS2

4 comentarios

What exactly is "a mobile"? We could guess, what it means that you "have" them, but posting some Matlab code, which produces the inputs, would be much more efficient than letting the readers guess and create the code for producing it.
"Distributed randomly" can mean a variety of things also: In 2D or 3D? If in 2D, do you assume that the "earth" is flat?
Note that the details about "mobiles", "base stations" and "classes" cannot be relevant for the solution, because Matlab sees numbers only. Then such terms are confusing for the readers only. A working solution requires to formulate the problem more abstract in a numerical manner. So please edit the question and try to simplify it. The less the readers have to guess, the better.
First of all, you must read this link so that you don't waste our time with lots of back and forth questions for clarification, like I'm going to do now:
  1. What is a "line the three mobiles"? Is it one line starting at the center of the 3 mobiles triangle and going somewhere? If so, where? Or is it 3 lines with a line going from each mobile to the closest of the 6 base stations?
  2. Do you have a diagram that shows the 3 mobile and 6 base station points and the line(s)? That would be tremendously helpful but, unfortunately you forgot to attach it.
  3. Is this a homework assignment? If so read this link for more tips. ALso add a "homework" tag to your post.
thanks dear Image Analyst and Jan Simon for your comments especially the link (how to ask a question) for simplicity finaly i sucsess to get my goal i went back to mathwork frequent question with the help of dr.KSSv as you advise me looking for some skills and ways to simulate my idea. next time i will do my best to make my question clear and numericaly as much as i can following the question skills because this the third time i deal with mathwork community again thanks alot dear Image Analyst and Jan Simon
You are welcome. Asking questions is not easy, because it is the nature of problems, that it is not clear, which details matter and which don't. Usually the clarification of the required information is the main part of the solution already.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre MATLAB en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 2 de Dic. de 2017

Comentada:

Jan
el 3 de Dic. de 2017

Community Treasure Hunt

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

Start Hunting!

Translated by