Getting Different plot values
Mostrar comentarios más antiguos
Hi,
I have this kind of data which is the position of each users (attached) but the problem when I plot them it's getting miss. Any suggestions to plot this data?
clear;
clf('reset');
max_iterations = 500;
xs = 1: max_iterations;
num_devices=50;
N=importdata('40_3_1.txt');
r=mean(reshape(N,2,[]));
r = r';
ys_00 =r(1:max_iterations, 1);
b = bar(xs, ys_00);
plot(xs, ys_00);
ylim([0 num_devices]);
xlabel("Iterations");
ylabel("Number of selected clients");
legend({'B', ...
}, ...
'location', 'northwest');
set(gca,'XMinorTick','on','YMinorTick','on');
grid on;
TextFontSize=20;
LegendFontSize = 15;
set(0,'DefaultAxesFontName','Times',...
'DefaultLineLineWidth',1,...
'DefaultLineMarkerSize',6);
set(gca,'FontName','Times New Roman','FontSize',TextFontSize);
hold off;
clear;
figure;
clf('reset');
2 comentarios
Walter Roberson
el 6 de Ag. de 2022
What is getting missed?
Brave A
el 6 de Ag. de 2022
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Call Web Services from MATLAB Using HTTP en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!




