From: Niall Heavey on
Hi all,
probably a pretty simple problem but can't figure out how to go about it myself.

I have a user who will be the center of a network. I will be locating this user at a point say, for convenience the point 0,0.
I will then have a number of different users (will vary each time) who I want to plot lines to or from dependent on contact. So for example I might be the central user and I might contact 3 different people. If I am contacting 3 different people what I am looking for is for these 3 to be equally spaced around the central user.

I think the easiest way of doing this would be to plot them in a circle at 360/3 degrees apart.

anyone have any idea how I might go about doing this in code?

I hope that all makes sense!

Regards,

N
From: Steven Lord on

"Niall Heavey" <REMOVEniallALLheaveyCAPLOCKS(a)gmail.com> wrote in message
news:hvvha9$3sc$1(a)fred.mathworks.com...
> Hi all, probably a pretty simple problem but can't figure out how to go
> about it myself.
>
> I have a user who will be the center of a network. I will be locating this
> user at a point say, for convenience the point 0,0.
> I will then have a number of different users (will vary each time) who I
> want to plot lines to or from dependent on contact. So for example I might
> be the central user and I might contact 3 different people. If I am
> contacting 3 different people what I am looking for is for these 3 to be
> equally spaced around the central user.
> I think the easiest way of doing this would be to plot them in a circle at
> 360/3 degrees apart.
>
> anyone have any idea how I might go about doing this in code?

http://en.wikipedia.org/wiki/Trigonometric_functions#Right-angled_triangle_definitions

Take a look at the second and third images on this page for a hint on how to
define the coordinates of the points; once you have the coordinates, use
PLOT or LINE. The SIND and COSD functions will be of use to you.

--
Steve Lord
slord(a)mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ
To contact Technical Support use the Contact Us link on
http://www.mathworks.com