필터 지우기
필터 지우기

For every iteration, I want to plot two parameters NPCR and UACI in the same graph

조회 수: 2 (최근 30일)
Neha W
Neha W 2016년 10월 26일
댓글: Neha W 2017년 3월 9일
On x axis: n= 1:5
On y axis: (Npcr & Uaci both are in %)
Npcr = [98.95 99.45 98.60 97.60 98.85] Uaci = [26.92 23.64 24.85 20.13 30.64]

답변 (1개)

KSSV
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')

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by