MATLAB Answers

How to plot two variables with respect to another one ?

8 views (last 30 days)
Yapo OBOUE
Yapo OBOUE on 24 Oct 2019
Answered: Yapo OBOUE on 25 Oct 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

Accepted Answer

Yapo OBOUE
Yapo OBOUE on 25 Oct 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')

  0 Comments

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!