Info
此问题已关闭。 请重新打开它进行编辑或回答。
lot chart with the respective date on the x axis starting with the first date for the first data point
1 次查看(过去 30 天)
显示 更早的评论
dates=datenum(VIXdate)
y=VIX
plot(dates,y)
d=datevec(dates)
d=d(:,1)
[a,idx]=unique(d)
ylabel('VIX');
set(gca,'xtick',dates(idx),'xticklabel',a)
set(gca,'Box','off')
I have the following code, which shows me a graph with the historic values for a vector called VIX. On the x-axis, I have the years from the vector VIXdate displays, which is working perfectly. The only problem I am facing is, that the dates are displayed for the last day of each year, but I would like to see the date at the point where the first date (01.01) of each year is. How do I have to change the code?
3 个评论
回答(0 个)
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!