For every iteration, I want to plot two parameters NPCR and UACI in the same graph
1 次查看(过去 30 天)
显示 更早的评论
回答(1 个)
KSSV
2016-10-27
n= 1:5 ;
Npcr = [98.95 99.45 98.60 97.60 98.85] ;
Uaci = [26.92 23.64 24.85 20.13 30.64] ;
figure
hold on
for i = 1:length(n)
plot(n(i),Npcr(i),'.r','markersize',10) ;
plot(n(i),Uaci(i),'.b','markersize',10) ;
end
legend('Npcr','Uaci')
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Line Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!