How to add a favorite vector as labels for plot() function?

3 次查看(过去 30 天)
How to add a favorite vector as labels for plot() function? For instance I need to display vector [1 2.2 3.14] as x axes labels instead [1 2 3].

回答(1 个)

Geoff
Geoff 2012-3-22
set(gca,'XTick',[1 2.2 3.14]);

类别

Help CenterFile Exchange 中查找有关 Annotations 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by