Figure ploting data problem
2 次查看(过去 30 天)
显示 更早的评论
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.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/145362/image.png)
0 个评论
采纳的回答
Mischa Kim
2014-9-11
Giorgi, add after the plot command
set(gca,'XTick',x,'XTickLabel',matrix1)
to change the tick labels.
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!