change start point of plot
30 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Nurul Ain Basirah Zakaria
el 16 de Feb. de 2021
Respondida: Cris LaPierre
el 3 de Mzo. de 2021
Hi how can I change the Jan to start at 0?
0 comentarios
Respuesta aceptada
Cris LaPierre
el 3 de Mzo. de 2021
You can change the first point's y value from 105 to 0.
d=datetime(2020,1,1):calmonths:datetime(2020,12,1);
y = randi(160,[1,12])+100;
M = month(d,'shortname');
plot(categorical(M,M),y)
% change the first point to 0
y(1)=0;
plot(categorical(M,M),y)
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Scatter Plots 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!