Borrar filtros
Borrar filtros

How to change grid dot-lines looks better?

11 visualizaciones (últimos 30 días)
Micro Torrent
Micro Torrent el 12 de Oct. de 2016
Respondida: Fernando Villarreal el 24 de Sept. de 2021
How to change the line style of the grid? I've changed the GridAlpha attribute but it doesn't looks like other scientific papers. What are the attributes of the Grid?

Respuestas (2)

Asad (Mehrzad) Khoddam
Asad (Mehrzad) Khoddam el 12 de Oct. de 2016
Editada: Asad (Mehrzad) Khoddam el 12 de Oct. de 2016
Try this code ax = gca; ax.GridLineStyle = '-'
  1 comentario
Micro Torrent
Micro Torrent el 13 de Oct. de 2016
Thank you for your answer. What I need is dot lines with bigger space intervals. I've tried to change all these parameters but no success.
ax = gca;
ax.GridLineStyle = ':';
ax.GridAlpha = 0.7;
ax.FontSize = 10;
ax.LineWidth = 0.8;

Iniciar sesión para comentar.


Fernando Villarreal
Fernando Villarreal el 24 de Sept. de 2021
t=datos(:,1);
Unrecognized function or variable 'datos'.
datos=[45 23 135 54 86 96 75 12 36 15 10 9 7];
y=datos(:,2);
plot(t,y,':');grid
val1=size(y)-10
val2=size(y)
ssData=y(val1:1:val2)
Deltay=mean(ssData)
porcTiempo1=DeltaY*0.283
porcTiempo2=DeltaY*0.632

Categorías

Más información sobre Resizing and Reshaping Matrices 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!

Translated by