Why I do not get the graphics as I want. It is not a code problem
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
flashpode
el 1 de Dic. de 2021
Comentada: flashpode
el 2 de Dic. de 2021
Hi, so my problem is that I do get the graphics in blank. I post the code and the data I am working with to help you understand the problem. Matlab do not tell me I have a problem with the code. I guess is the amount of information or the amount of graphics at the same time(30) but I do not know, I let you tell me. Here is the code :
k = length(DataRaval);
for k = 1:48:1439
nexttile
plot(datenum(DataRaval(k,1)),TempRaval(k,1));
datetick('x','HHPM')
xlabel('Horas'),ylabel('Temperatura en ºC')
title('Temperatura durant el dia 1 de març')
end
and the data used.
If you know the problem and know the solution too please share!
0 comentarios
Respuesta aceptada
DGM
el 1 de Dic. de 2021
You have to plot more than one data point.
load DataRaval2.mat
load TempRaval2.mat
for k = 1:48:numel(TempRaval)
nexttile
vend = min(k+48,numel(TempRaval));
plot(datenum(DataRaval(k:vend,1)),TempRaval(k:vend,1));
datetick('x','HHPM')
xlabel('Horas'),ylabel('Temperatura en ºC')
title('Temperatura durant el dia 1 de març')
end
7 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Annotations en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!