MATLAB Answers

plot n number of nodes, where the color of each node depends on some value eg. energy, using MATLAB

1 ビュー (過去 30 日間)
Murtaza Rizvi
Murtaza Rizvi 2021 年 5 月 26 日
回答済み: darova 2021 年 5 月 26 日
I have an n number of sensor nodes with random x and y coordinates. I run my code for my protocol and at the end, I want to analyze how energy consumption is distributed overall. Therefore, in the end, I have the x and y coordinates and the final energy of each node. I want to plot each node with the color of each node depending upon the energy, e.g if the energy of any node is less than 10% then red color, and so on.
It will be better if I could show the final plot similar to a contour plot

カテゴリ

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by