필터 지우기
필터 지우기

Figure ploting data problem

조회 수: 2 (최근 30일)
Giorgi
Giorgi 2014년 9월 11일
댓글: Giorgi 2014년 9월 11일
Hello Matlab gurus! I have such code
if true
% code
matrix1={'1/1/2013';'2/1/2013';'3/1/2013'};
matrix2=[4;5;6];
x=datenum(matrix1);
plot(x,matrix2);
end
we get such graph
as you see on the axis it has converted time series but i want to have it original date values.
Any idea would be great help.
Waiting for your response.

채택된 답변

Mischa Kim
Mischa Kim 2014년 9월 11일
Giorgi, add after the plot command
set(gca,'XTick',x,'XTickLabel',matrix1)
to change the tick labels.
  댓글 수: 3
Giorgi
Giorgi 2014년 9월 11일
and one more question, for example I have 140 date, in this too many dates will overwrite on each other and it will be horrible, so what can i do if i want to write on the axis only every tenth date?
Giorgi
Giorgi 2014년 9월 11일
I mean intervals

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by