I am looking for LEACH-C protocol source code in MATLAB ?

2 ビュー (過去 30 日間)
Abdelwahab Fawzy
Abdelwahab Fawzy 2016 年 9 月 12 日
コメント済み: Walter Roberson 2022 年 10 月 27 日
can any one help me in getting the source code of LEACH_C protcol
  2 件のコメント
Salah Salah
Salah Salah 2020 年 6 月 2 日
Hello, have you been able to find the leach-c matlab code since then ? Thank u
Marwa  Sawi
Marwa Sawi 2021 年 11 月 13 日
Please I need t the code of TL-Leach in matlab for my project can anyone help me please

サインインしてコメントする。

回答 (1 件)

Sanskar Garg
Sanskar Garg 2020 年 11 月 25 日
Hope this helps.
  4 件のコメント
said ouhmi
said ouhmi 2022 年 10 月 27 日
hello , when i execute this code it give me this error :
Unrecognized field name "E".
Error in LEACH_C (line 58)
if (S(i).E<=0)
Walter Roberson
Walter Roberson 2022 年 10 月 27 日
The code expects that it will have a struct passed into the function.
The struct is expected to have fields named
  • cl -- zero assigned to sometimes, but not used for anything
  • E -- energy, must be set for sure
  • G -- unknown purpose, set to 0 and to 19
  • min_dis -- minimum distance to something
  • min_dis_cluster -- cluster that the point is a minimum distance to
  • type -- 'C' or 'N' -- unknown purpose
  • xd -- x position, must be set for sure
  • yd -- y position, must be set for sure
Possibly some of those do not need to be initialized, as some of the fields are perhaps always set before use, but it is not obvious that will be the case, as the initializations of the fields is done conditionally. Safer to assume that you need to initialize all of the fields I noted.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeDebugging and Analysis についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by