필터 지우기
필터 지우기

How to change grid dot-lines looks better?

조회 수: 11 (최근 30일)
Micro Torrent
Micro Torrent 2016년 10월 12일
답변: Fernando Villarreal 2021년 9월 24일
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?

답변 (2개)

Asad (Mehrzad) Khoddam
Asad (Mehrzad) Khoddam 2016년 10월 12일
편집: Asad (Mehrzad) Khoddam 2016년 10월 12일
Try this code ax = gca; ax.GridLineStyle = '-'
  댓글 수: 1
Micro Torrent
Micro Torrent 2016년 10월 13일
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;

댓글을 달려면 로그인하십시오.


Fernando Villarreal
Fernando Villarreal 2021년 9월 24일
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

카테고리

Help CenterFile Exchange에서 Resizing and Reshaping Matrices에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by