You are now following this question
- You will see updates in your followed content feed.
- You may receive emails, depending on your communication preferences.
hello I want build a function that calculate the neighbours node for each node ...of course I genrete a node randomly with 3 dimensions
2 views (last 30 days)
Show older comments
hello I want build a function that calculate the neighbours node for each node ...of course I genrete a node randomly with 3 dimensions
10 Comments
Geoff Hayes
on 28 Oct 2014
Maha - how will you be determining if a node is a neighbour or not? What algorithm are you using?
maha ismail
on 28 Oct 2014
Geoff - i need to know the neibours node for each node>>> the algorithim that i used is standard gossip algorthim
and i need another thin>>i want to all the neighbours for each node and find the nearest one in 2-dimention the alogrithim now is geograghic gossip
maha ismail
on 28 Oct 2014
i need both standard gossip and geographic gossip algorithms but I dont have the implementation of them in matlab..I just try to implement it by myself but I couldn't
Geoff Hayes
on 28 Oct 2014
Why didn't it work? Please indicate what problems you were experiencing with the code that you wrote. Attach the m file to your question (or comment) using the paperclip button.
maha ismail
on 28 Oct 2014
it didn't work because I can't write it correctly or I have few information in matlab programming. .
maha ismail
on 28 Oct 2014
the alogrithim is for 5 random node each nod hae intial value. each node have neighbours but at each time one node comminicate with randomaly neighbour node
maha ismail
on 28 Oct 2014
the pairs cacluate the averaging of themselves and save it as new value x=[1 2 3 4 5] as intial value for 5 node> at each comminication x(t+1)=w(t)*x(t) where w(t) amatrix with ones diagnol and 0.5 in (i,i) (j,j) (i,j) (j,i) where i is the node and j is a randomaly neighbours for i
Answers (0)
See Also
Categories
Find more on Creating and Concatenating Matrices in Help Center and File Exchange
Tags
No tags entered yet.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!An Error Occurred
Unable to complete the action because of changes made to the page. Reload the page to see its updated state.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)