Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
how to generate a random topology in Matlab

Subject: how to generate a random topology in Matlab

From: tawfik tawfik

Date: 29 May, 2012 20:00:08

Message: 1 of 5

Hi,

I am looking for a matlab code to generate a random topology according to density ...for example, to generate a random topology with 10 nodes according to density 3 nodes by squar meter

thanks

Subject: how to generate a random topology in Matlab

From: Roger Stafford

Date: 29 May, 2012 20:48:06

Message: 2 of 5

"tawfik tawfik" <tawfik830@gmail.com> wrote in message <jq39s8$chr$1@newscl01ah.mathworks.com>...
> I am looking for a matlab code to generate a random topology according to density ...for example, to generate a random topology with 10 nodes according to density 3 nodes by squar meter
- - - - - - - - - -
  Could you please explain in much greater detail what you mean by a "random topology" with "nodes"? I have had a number of graduate mathematics classes in topology but I still don't understand what you are asking here.

Roger Stafford

Subject: how to generate a random topology in Matlab

From: tawfik tawfik

Date: 29 May, 2012 21:01:10

Message: 3 of 5

Hi Roger,
Sorry my english is not good, i will give you example to understand better :

i have 20 squar meter surface, i want to generate 10 point(nodes) randomly in this surface but with condition of density : 2 nodes by sqaure meter

so i am looking for matlab code

"Roger Stafford" wrote in message <jq3cm5$npb$1@newscl01ah.mathworks.com>...
> "tawfik tawfik" <tawfik830@gmail.com> wrote in message <jq39s8$chr$1@newscl01ah.mathworks.com>...
> > I am looking for a matlab code to generate a random topology according to density ...for example, to generate a random topology with 10 nodes according to density 3 nodes by squar meter
> - - - - - - - - - -
> Could you please explain in much greater detail what you mean by a "random topology" with "nodes"? I have had a number of graduate mathematics classes in topology but I still don't understand what you are asking here.
>
> Roger Stafford

Subject: how to generate a random topology in Matlab

From: Roger Stafford

Date: 30 May, 2012 02:25:07

Message: 4 of 5

"tawfik tawfik" <tawfik830@gmail.com> wrote in message <jq3dem$qt3$1@newscl01ah.mathworks.com>...
> i have 20 squar meter surface, i want to generate 10 point(nodes) randomly in this surface but with condition of density : 2 nodes by sqaure meter
- - - - - - - - - - - -
  I still feel uncertain as to what you are asking and I need to ask you some specific questions. You state that the surface is 20 square meters. Is that an area as projected onto a plane such as the x-y plane or is that the area of the surface itself? That makes a difference if the surface is tilted or curved for example. What is the shape of the boundary of this surface? When you speak of density do you mean as applied to indefinitely small portions of the total surface, or are you just concerned with, say, 20 discrete pieces of surface of one square meter each and each portion is to have a certain number of nodes? Is this density a probability density? How do you explain the apparent contradiction between a total of 10 nodes, a density of 2 nodes per square meter, and a total area of 20 square meters?

  As you can see from these questions, you need to greatly expand your explanation if you hope to receive effective help in this newsgroup. I should not have to be prodding you for answers in this way.

Roger Stafford

Subject: how to generate a random topology in Matlab

From: ImageAnalyst

Date: 30 May, 2012 11:44:00

Message: 5 of 5

Yeah, I don't know either. Maybe he simply wants

randomNodeArray = rand(100);

or something like that????

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us