How to plot two variables with respect to another one ?

42 visualizaciones (últimos 30 días)
Yapo OBOUE
Yapo OBOUE el 24 de Oct. de 2019
Respondida: Yapo OBOUE el 25 de Oct. de 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

Respuesta aceptada

Yapo OBOUE
Yapo OBOUE el 25 de Oct. de 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')

Más respuestas (0)

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by