Can anyone help me to spot the error and how to solve it?
1 回表示 (過去 30 日間)
古いコメントを表示
Error in OPT_LEACH (line 279)
plot([r r+1],[STATISTICS(r+1).AVG STATISTICS(r+2).AVG],'red');
Error using plot
Vectors must be the same lengths.
And here is the function of error:
figure(3);
for r=0:1:300
ylabel('Average Energy of each Node');
xlabel('Round Number');
plot([r r+1],[STATISTICS(r+1).AVG STATISTICS(r+2).AVG],'red');
hold on;
end
0 件のコメント
回答 (2 件)
utsav kakkad
2018 年 11 月 5 日
Hey I am having the same error and using STATISTICS(r+1).avg How did you solve it ?
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Graph and Network Algorithms についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!