When displaying x-axis labels, show as scaled, how to
10 次查看(过去 30 天)
显示 更早的评论
My plot returns x axis labels with values 0, 0.005, 0.01, 0.015, 0.02,...., 0.045 when it plots something. X-axis is time axis. My plot itself is fine, y-axis label is fine too.
In the x-axis, I want the label numbers to display in a scaled version: scaled by 10exp(-9). I want it to display like this: 0, 5, 10, 15... , 45 (x exp -9) Now, I am labeling my x-axis as "Time(myu.s)", but I want to be able to label as "Time (ns)".
Gurus, please help.
Thanks.
1 个评论
Walter Roberson
2012-7-14
Please do not use "matlab" as a Tag. http://www.mathworks.co.uk/matlabcentral/answers/43073-a-guide-to-tags
采纳的回答
Walter Roberson
2012-7-13
curticks = get(gca, 'XTick');
set(gca, 'XTickLabel', cellstr( num2str( round(1e9 * curticks(:)) ) ) )
0 个评论
更多回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Axis Labels 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!