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 Center および File Exchange2-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