Plot a time series with the whole number not 10^(n)
4 次查看(过去 30 天)
显示 更早的评论
Hi
I would like to plot one time series which is able to show the whole number in y axis not 10^(n)
The following is my code.
y = yahoo;
Dataset = fetch(y, '^HSI','Close','2012-01-01','2012-02-01');
hsiobj = fints (Dataset(:,1),Dataset(:,2));
plot(hsiobj); legend('HSI');xlabel('Date'); ylabel('HSI');
I want to y axis showing 21000 instead of 2.1*10^4 etc.
Thanks so much Jessica
0 个评论
采纳的回答
Patrick Kalita
2012-2-7
This page describes how to apply any kind of numeric fomatting to your axes tick labels.
0 个评论
更多回答(2 个)
Kevin Holst
2012-2-7
Yeah I deleted my answer after I realized that num2str doesn't work properly, but found that num2cell does. Glad it worked for ya! :)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Polar Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!