How to plot two variables with respect to another one ?

조회 수: 41 (최근 30일)
Yapo OBOUE
Yapo OBOUE 2019년 10월 24일
답변: Yapo OBOUE 2019년 10월 25일
SRN diagram with respect to missing data.PNG
SNR diagram.PNG
Hello dear, I am looking for a matlab program or script to plot the two variables snr1 and snr2 with respect to missing traces as it is shown in the above table in order to obtain a figure like the above one. Any help are welcome. Thanks

채택된 답변

Yapo OBOUE
Yapo OBOUE 2019년 10월 25일
Thanks ! I got it here is the plotting script :
missingData = 0:10:90;
snr1=[26, 25.4147, 25.1168, 24.7236, 23.9581, 22.7252, 20.0322, 15.5331, 10.391, 8.971];
xlabel('Missing data (%)'); ylabel('SNR(dB)')
plot(missingData,snr1)
hold on
missingData = 0:10:90;
snr2=[26, 25.5938, 25.3969, 25.0996, 24.49, 23.7696, 22.6793, 21.6432, 19.0555, 16.2046];
xlabel('Missing data (%)'); ylabel('SNR(dB)')
plot(missingData,snr2)
legend('snr1','snr2')

추가 답변 (0개)

카테고리

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