How to label X axis in the form of characters?

2 次查看(过去 30 天)
Hi,
How to label X axis in the form of characters.
Regards,
siva

采纳的回答

Richard
Richard 2012-3-28
set(gca,'XTickLabel',{'data point 1','data point 2'});
where data point 1 and data point 2 will become the name of that particular xlabel. You need to have the number of strings to be equal to the number of points.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 View and Analyze Simulation Results 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by