matrix per minute in plot per hour
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Stef De Vos
el 8 de Dic. de 2022
Comentada: Stef De Vos
el 8 de Dic. de 2022
I have a load profile matrix 96x1, a value for every 15min..
But I want to plot this in a graph with the plot figure of the 15min. data but with the x axis labeled in hour (per 4 values 1 indicator on the x axis, starting from 0 to 24h.
Can this be done?
0 comentarios
Respuesta aceptada
Jonas
el 8 de Dic. de 2022
you mean something like that? or do you want another format?
plot((1:96)/4,rand(96,1));
xticks(0:3:24)
xlim([0 24]);
xlabel('time / h')
Más respuestas (1)
Bora Eryilmaz
el 8 de Dic. de 2022
Something like this?
for k = 0:20
x = minutes(15*k + linspace(0,15,96));
y = cumsum(rand(96,1));
p = plot(x,y);
hold on
end
ax = gca;
ax.XAxis.TickLabelFormat = 'h';
ax.XAxis.MinorTickValues = hours(0:0.25:24);
ax.XAxis.MinorTick = 'on';
0 comentarios
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!