Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想知道是否有任何方法可以以这种方式创建 X 轴。
X axis like this way *0, 100, 200, 300,400, 500, 400,300,200,100. 0
您可以将标签设置为这样的刻度
设置(gca,'XTickLabel',{'1','2','3','2','1'})。
请参阅此处“指定刻度标记位置和标签”下的示例