plot value divide error

2 visualizaciones (últimos 30 días)
SANDEEP SINGH RANA
SANDEEP SINGH RANA el 6 de Jun. de 2021
Editada: DGM el 6 de Jun. de 2021
for it=1:4305
iteration(it,1)=it;
end
figure;
plot(iteration(:,1),Q(:,2)./(1*10^6),'-o','linewidth',1.5);
xlabel('Number of iterations');
ylabel('Throughput in (MBps)');
%%%%%%%%%%%%%%%%%%
Function Q is matrix of size 4305*14.
Error is in the plot. I am not getting value divided by (1*10^6) due to this my Q function value becoming to near 0.
Please point out where I am missing.
  2 comentarios
Manas Minnoor
Manas Minnoor el 6 de Jun. de 2021
Q will become near to zero if the value is divided by 1*10^6, right? Why do you think it is not dividing?
DGM
DGM el 6 de Jun. de 2021
Editada: DGM el 6 de Jun. de 2021
I second Manas. Nobody knows what your numbers are, but dividing things by a big number makes them small. Getting small numbers is anything but an indicator that things are failing to become small.
Make some observations of the range of the data.
[min(Q(:,2)) max(Q(:,2))]
[min(Q(:,2)/1E6) max(Q(:,2)/1E6)]
Maybe that 1E6 scaling factor isn't needed due to an oversight in your calculations or the input scaling.
Also, as an aside,
for it=1:4305
iteration(it,1)=it;
end
is the same as
iteration(:,1) = 1:4305;

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Data Preprocessing 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