How to plot two variables with respect to another one ?

49 Ansichten (letzte 30 Tage)
Yapo OBOUE
Yapo OBOUE am 24 Okt. 2019
Beantwortet: Yapo OBOUE am 25 Okt. 2019
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

Akzeptierte Antwort

Yapo OBOUE
Yapo OBOUE am 25 Okt. 2019
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')

Weitere Antworten (0)

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by