Matlab code for selecting backup cluster head in case of occurring breakdown in primary CH?

i try to write matlab code for selecting secondry or backup CH as select priary CH which is selecteed based on no of parameter residual enery distane between BS .But i canot also writing how make handover between primary and backup CH without faiular of network or lossing data

5 Comments

Is this a MATLAB question, in the sense that you are getting an error in the MATLAB code you used to implement this? Or is this an algorithm question, in that you do not know the steps to do the task?
i tried more time to find source code for LEACH -VH which used CH and vise CH as a backup CH but i can not get it , so i try to get function for selection backup CH based on the seconds highest remaing energy after primary CH and also i need to implement clustring handover mechanism on both primary and backup CH
So then this is an algorithm question: you do not know what steps are needed. You should research papers that describe the steps needed to select a vice cluster head.
When you have found the algorithm and are having trouble implementing it (with you already knowing what steps you need) then we can help you debug your (commented) attempt. We do not, however, do your research for you.
i know steps for selecting vice CH and i have pesdu code for it but i can not know how to write it in mutlab code
To learn how to write it in MATLAB code, see these links. Sorry but the few volunteers here can't write up a turnkey project for everyone who posts here that does not yet know how to program in MATLAB. Mathworks give you numerous options to learn the language. You can even go to YouTube.

Sign in to comment.

Answers (0)

Tags

Asked:

Mai
on 15 Aug 2022

Commented:

on 22 Aug 2022

Community Treasure Hunt

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

Start Hunting!