MATLAB Answers

How to change the way it is being plotted?

1 view (last 30 days)
Silva
Silva on 11 Jan 2020
Commented: Silva on 13 Jan 2020
I have JSR vs MSE data and my plot is coming in another way than in base paper. please help with that.
Here is the data,
JSRdB=40:5:60;
MSE= [0.9592 1.1141 1.6038 3.1525 8.0497]
plot(JSRdB,MSE)
base paper.png
jsrvsmse.png
I want the graph to be plotted like the first one.
  5 Comments

Sign in to comment.

Accepted Answer

Meg Noah
Meg Noah on 11 Jan 2020
Possible solution (journal paper values just eyeballed not digitized)
JSRdB=40:5:60;
MSESilva = [0.9592 1.1141 1.6038 3.1525 8.0497];
DWCTHard = [5.1 10 14.5 16 17];
DWCTSoft = [5.1 9.9 14.4 16 17.2];
WPCTADPSoft = [ 2 2 2 2 2];
WPCTADPHard = [ 2 2 2 2 2];
figure(); ylabel('MSE'); xlabel('JSR (dB)'); hold on;
plot(JSRdB,WPCTADPSoft,'-ok','DisplayName','WPCT-ADP-Soft Thresh');
plot(JSRdB,WPCTADPHard,'-sk','DisplayName','WPCT-ADP-Hard Thresh');
plot(JSRdB,DWCTSoft,'-^','color',[0.5 0.5 0.5],'DisplayName','DWCT-Soft Thresh');
plot(JSRdB,DWCTHard,'-dk','DisplayName','DWCT-Hard Thresh');
plot(JSRdB,MSESilva,'-or','DisplayName','Our Data which is way better');
xlim([40 60]);
ylim([-10 45]);
grid on;
box on;
legend('location','northeast');
BetterDataPlotter.png

More Answers (0)

Categories

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by